Skip to content

Commit

Permalink
Reinstate install, without export
Browse files Browse the repository at this point in the history
  • Loading branch information
isherman committed Aug 28, 2023
1 parent a3b9d32 commit 4888a2d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,24 @@ file( RELATIVE_PATH REL_INCLUDE_DIR
"${CMAKE_INSTALL_PREFIX}/include"
)

install(
TARGETS ${component_list}
# EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
# install(
# EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKECONFIG_INSTALL_DIR}
# )

# uninstall target
if(NOT TARGET uninstall)
configure_file(
Expand Down

0 comments on commit 4888a2d

Please sign in to comment.