diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-07 14:55:43 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-07 14:55:43 +0900 |
| commit | 5d635ba561bb133ee65554ca4565084179b4078f (patch) | |
| tree | 934c94b0041aa8e49c91efaccd37cdd414e6e846 | |
| parent | 7329c5659231beb753e39f600f5ac2d6bef92e3f (diff) | |
| download | tde-cmake-5d635ba561bb133ee65554ca4565084179b4078f.tar.gz tde-cmake-5d635ba561bb133ee65554ca4565084179b4078f.zip | |
tde-cmake is now a standalone module, there is no more need to check for it
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
| -rw-r--r-- | CMakeLists.txt | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e95052..f8e0fab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,31 +9,26 @@ # ################################################# -## Process only if it is built as a standalone package -if( "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}" ) - ##### general package setup ##################### - # building tde-cmake requires reading the minimum required version - # from the source files, because there may be a different version - # of tde-cmake already installed in the system. Trying to build - # tde-cmake with a lower minimum version would not be allowed then. +# building tde-cmake requires reading the minimum required version +# from the source files, because there may be a different version +# of tde-cmake already installed in the system. Trying to build +# tde-cmake with a lower minimum version would not be allowed then. - include( ${CMAKE_SOURCE_DIR}/modules/TDEVersion.cmake ) - cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) - project( tde-cmake-rules ) +include( ${CMAKE_SOURCE_DIR}/modules/TDEVersion.cmake ) +cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) +project( tde-cmake-rules ) ##### install TDE CMake files ################### - file( GLOB_RECURSE _modules - RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/modules/* ) - install( FILES ${_modules} DESTINATION ${CMAKE_ROOT}/Modules ) - - file( GLOB_RECURSE _templates - RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/templates/* ) - install( FILES ${_templates} DESTINATION ${CMAKE_ROOT}/Templates ) +file( GLOB_RECURSE _modules + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/modules/* ) +install( FILES ${_modules} DESTINATION ${CMAKE_ROOT}/Modules ) -endif() +file( GLOB_RECURSE _templates + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/templates/* ) +install( FILES ${_templates} DESTINATION ${CMAKE_ROOT}/Templates ) |
