mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
cmake: update location of cmake configuration files for unix subsystems
This commit is contained in:
@@ -311,6 +311,12 @@ ENDIF()
|
|||||||
# CMake project configuration export
|
# CMake project configuration export
|
||||||
# **********************************
|
# **********************************
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
set(CONF_CMAKE_INSTALL_DIR lib/cmake/libtins)
|
||||||
|
else()
|
||||||
|
set(CONF_CMAKE_INSTALL_DIR CMake)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Add all targets to the build-tree export set
|
# Add all targets to the build-tree export set
|
||||||
EXPORT(
|
EXPORT(
|
||||||
TARGETS tins
|
TARGETS tins
|
||||||
@@ -337,13 +343,13 @@ INSTALL(
|
|||||||
FILES
|
FILES
|
||||||
"${PROJECT_BINARY_DIR}/libtinsConfig.cmake"
|
"${PROJECT_BINARY_DIR}/libtinsConfig.cmake"
|
||||||
"${PROJECT_BINARY_DIR}/libtinsConfigVersion.cmake"
|
"${PROJECT_BINARY_DIR}/libtinsConfigVersion.cmake"
|
||||||
DESTINATION CMake
|
DESTINATION ${CONF_CMAKE_INSTALL_DIR}
|
||||||
COMPONENT dev
|
COMPONENT dev
|
||||||
)
|
)
|
||||||
|
|
||||||
# Install the export set for use with the install-tree
|
# Install the export set for use with the install-tree
|
||||||
INSTALL(
|
INSTALL(
|
||||||
EXPORT libtinsTargets
|
EXPORT libtinsTargets
|
||||||
DESTINATION CMake
|
DESTINATION ${CONF_CMAKE_INSTALL_DIR}
|
||||||
COMPONENT dev
|
COMPONENT dev
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user