Skip to content

Commit

Permalink
grouping install configurations together
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hewett committed Jul 20, 2023
1 parent f7d76a5 commit 7c7be86
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
###
Expand All @@ -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)

0 comments on commit 7c7be86

Please sign in to comment.