"src/include/gridwise_implicit_gemm_convolution.cuh" did not exist on "059711633041b73ac3ed3c3b287eee8667092f3f"
Commit 8aefb675 authored by jbeder's avatar jbeder
Browse files

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

parent ed8f016c
......@@ -4,8 +4,18 @@ project (YAML_CPP)
enable_testing()
set(LIBRARY_OUTPUT_PATH lib${LIB_SUFFIX})
set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
if(WIN32)
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)
file(GLOB public_headers include/*.h)
......@@ -19,11 +29,7 @@ add_library(yaml-cpp
${sources}
)
install(
TARGETS yaml-cpp
LIBRARY ARCHIVE
DESTINATION ${LIB_INSTALL_DIR}
)
install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS})
install(
FILES ${public_headers}
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