Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
3c35ab1e
Commit
3c35ab1e
authored
Aug 24, 2009
by
jbeder
Browse files
Added CMake option to build for the iphone
parent
4457b7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
CMakeLists.txt
CMakeLists.txt
+9
-1
No files found.
CMakeLists.txt
View file @
3c35ab1e
...
@@ -2,6 +2,13 @@ cmake_minimum_required(VERSION 2.6)
...
@@ -2,6 +2,13 @@ cmake_minimum_required(VERSION 2.6)
project
(
YAML_CPP
)
project
(
YAML_CPP
)
set
(
LIB_TYPE SHARED
)
if
(
IPHONE
)
set
(
CMAKE_OSX_SYSROOT iphoneos2.2.1
)
set
(
LIB_TYPE
)
endif
(
IPHONE
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
set
(
CMAKE_CXX_FLAGS
"-O2 -Wall -pedantic -Wextra"
)
set
(
CMAKE_CXX_FLAGS
"-O2 -Wall -pedantic -Wextra"
)
endif
(
CMAKE_COMPILER_IS_GNUCC
)
endif
(
CMAKE_COMPILER_IS_GNUCC
)
...
@@ -34,7 +41,8 @@ file(GLOB private_headers src/*.h)
...
@@ -34,7 +41,8 @@ file(GLOB private_headers src/*.h)
file
(
GLOB sources src/*.cpp
)
file
(
GLOB sources src/*.cpp
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
add_library
(
yaml-cpp SHARED
add_library
(
yaml-cpp
${
LIB_TYPE
}
${
public_headers
}
${
public_headers
}
${
private_headers
}
${
private_headers
}
${
sources
}
${
sources
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment