mirror of https://github.com/AxioDL/nod.git
Adjusted install commands for better CMake compatibility
This commit is contained in:
parent
01237372e1
commit
4dd0375cae
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue