Adjusted install commands for better CMake compatibility

This commit is contained in:
Jack Andersen 2019-05-23 14:17:45 -10:00
parent 01237372e1
commit 4dd0375cae
2 changed files with 8 additions and 8 deletions

View File

@ -29,14 +29,6 @@ set(version_config_file "${PROJECT_BINARY_DIR}/nodConfigVersion.cmake")
set(config_file "${PROJECT_BINARY_DIR}/nodConfig.cmake") set(config_file "${PROJECT_BINARY_DIR}/nodConfig.cmake")
set(config_install_dir "lib/cmake/nod") set(config_install_dir "lib/cmake/nod")
# Associate target with export
install(
TARGETS nod
EXPORT nodTargets
ARCHIVE DESTINATION "lib"
INCLUDES DESTINATION include # This sets the INTERFACE_INCLUDE_DIRECTORIES property of the target.
)
# Install the target config files # Install the target config files
install( install(
EXPORT nodTargets EXPORT nodTargets

View File

@ -19,3 +19,11 @@ add_library(nod
if(NOT MSVC AND NOT NX) if(NOT MSVC AND NOT NX)
set_source_files_properties(aes.cpp PROPERTIES COMPILE_FLAGS -maes) set_source_files_properties(aes.cpp PROPERTIES COMPILE_FLAGS -maes)
endif() endif()
# Associate target with export
install(
TARGETS nod
EXPORT nodTargets
ARCHIVE DESTINATION "lib"
INCLUDES DESTINATION include # This sets the INTERFACE_INCLUDE_DIRECTORIES property of the target.
)