"lib/git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "22e1e637582879fd520f15262edf2370474415e5"
Commit 81f5348e authored by Jesse Beder's avatar Jesse Beder
Browse files

Patched CMake file to allow flexibility in build (in particular to allow shared lib build)

parent 620c58ab
...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment