X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=CMakeLists.txt;h=a4bc412281da110aaaa4033db4256286ef6d4f38;hp=dbce3e331c8a88fab9d904a8c27242811b7bc7f9;hb=ec9c52668a43af61eb0c4e1f72bc69db78378e86;hpb=63c74af5519ae3db82627b9cd3b36bb2cfa3bd72 diff --git a/CMakeLists.txt b/CMakeLists.txt index dbce3e3..a4bc412 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) endif(NOT CMAKE_BUILD_TYPE) +message(STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}") # Build output directory: set(CMAKE_RUNTIME_OUTPUT_DIRECTORY build/${CMAKE_BUILD_TYPE}/bin) @@ -208,11 +209,16 @@ ENDFOREACH() # Install -# see http://stackoverflow.com/questions/14084759/keep-a-single-files-permissions-when-using-install-in-cmake -####set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/deploy") -####install(FILES build/lib/libtools_static.a DESTINATION lib) -####install(PROGRAMS build/lib/libtools_shared.so DESTINATION lib) -####install(PROGRAMS build/bin/hello DESTINATION bin) +message(STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}") +# Binaries: +file(GLOB_RECURSE BINARIES ${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/bin/*) +install(PROGRAMS ${BINARIES} DESTINATION bin) +# Headers: +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/anna/ DESTINATION include) +# Libraries: +file(GLOB_RECURSE LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/lib/*) +install(FILES ${LIBRARIES} DESTINATION lib) + # Add target for API documentation with Doxygen find_package(Doxygen)