diff --git a/CMakeLists.txt b/CMakeLists.txt index ca7d30f4..eebbfc10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,17 +114,6 @@ target_include_directories(${LIB_NAME} ${OPENSSL_INCLUDE_DIR} ) -### -### Install -### - -install(TARGETS ${LIB_NAME} EXPORT mlspp-targets) -install( - DIRECTORY - include/ - DESTINATION - ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}-${PROJECT_VERSION}) - ### ### Tests ### @@ -151,8 +140,23 @@ write_basic_package_version_file( VERSION ${PROJECT_VERSION} COMPATIBILITY SameMajorVersion) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mlspp-config.cmake - ${CMAKE_CURRENT_BINARY_DIR}/mlspp-config-version.cmake - ${CMAKE_CURRENT_BINARY_DIR}/mlspp-targets.cmake - DESTINATION ${CMAKE_INSTALL_DATADIR}/mlspp) +### +### Install +### + +install(TARGETS ${LIB_NAME} EXPORT mlspp-targets) + +install( + DIRECTORY + include/ + DESTINATION + ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}-${PROJECT_VERSION}) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/mlspp-config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/mlspp-config-version.cmake + ${CMAKE_CURRENT_BINARY_DIR}/mlspp-targets.cmake + DESTINATION + ${CMAKE_INSTALL_DATADIR}/mlspp)