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
81f5348e
Commit
81f5348e
authored
Jun 12, 2009
by
Jesse Beder
Browse files
Patched CMake file to allow flexibility in build (in particular to allow shared lib build)
parent
620c58ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
CMakeLists.txt
CMakeLists.txt
+13
-7
No files found.
CMakeLists.txt
View file @
81f5348e
...
@@ -4,8 +4,18 @@ project (YAML_CPP)
...
@@ -4,8 +4,18 @@ project (YAML_CPP)
enable_testing
()
enable_testing
()
set
(
LIBRARY_OUTPUT_PATH lib
${
LIB_SUFFIX
}
)
if
(
WIN32
)
set
(
LIB_INSTALL_DIR lib
${
LIB_SUFFIX
}
)
set
(
_library_dir bin
)
# .dll are in PATH, like executables
else
(
WIN32
)
set
(
_library_dir lib
)
endif
(
WIN32
)
#
set
(
_INSTALL_DESTINATIONS
RUNTIME DESTINATION bin
LIBRARY DESTINATION
${
_library_dir
}${
LIB_SUFFIX
}
ARCHIVE DESTINATION lib
${
LIB_SUFFIX
}
)
#
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
file
(
GLOB public_headers include/*.h
)
file
(
GLOB public_headers include/*.h
)
...
@@ -19,11 +29,7 @@ add_library(yaml-cpp
...
@@ -19,11 +29,7 @@ add_library(yaml-cpp
${
sources
}
${
sources
}
)
)
install
(
install
(
TARGETS yaml-cpp
${
_INSTALL_DESTINATIONS
}
)
TARGETS yaml-cpp
LIBRARY ARCHIVE
DESTINATION
${
LIB_INSTALL_DIR
}
)
install
(
install
(
FILES
${
public_headers
}
FILES
${
public_headers
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
...
...
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