Debian Codegraph @

cmake/tribits/examples/TribitsExampleProjectAddons/CMakeLists.txt

raw
1 ################################################################################
2 # #
3 # TribitsExampleProjectAddons #
4 # #
5 ################################################################################
6
7 # To be safe, define your minimum CMake version. This may be newer than the
8 # min required by TriBITS.
9 cmake_minimum_required(VERSION 3.23.0 FATAL_ERROR)
10
11 # Make CMake set WIN32 with CYGWIN for older CMake versions. CMake requires
12 # this to be in the top-level CMakeLists.txt file and not an include file :-(
13 set(CMAKE_LEGACY_CYGWIN_WIN32 1 CACHE BOOL "" FORCE)
14
15 #
16 # A) Define your project name and set up major project options
17 #
18 # NOTE: Don't set options that would impact what packages get defined or
19 # enabled/disabled in this file as that would not impact other tools that
20 # don't process this file.
21 #
22
23 # Get PROJECT_NAME (must be in a file for other parts of system to read)
24 include("${CMAKE_CURRENT_SOURCE_DIR}/ProjectName.cmake")
25
26 # CMake requires that you declare the CMake project in the top-level file and
27 # not in an include file :-(
28 project(${PROJECT_NAME} NONE)
29
30 #
31 # B) Pull in the TriBITS system and execute
32 #
33
34 set(${PROJECT_NAME}_TRIBITS_DIR
35 "${CMAKE_CURRENT_LIST_DIR}/../.." CACHE STRING
36 "TriBITS base directory (default assumes in TriBITS source tree)")
37 include("${${PROJECT_NAME}_TRIBITS_DIR}/TriBITS.cmake")
38
39 # Set default location for header-only TPL to make easy to configure out of
40 # the TriBITS source tree.
41 set(HeaderOnlyTpl_INCLUDE_DIRS
42 "${${PROJECT_NAME}_TRIBITS_DIR}/examples/tpls/HeaderOnlyTpl"
43 CACHE PATH "Default set by TriBITS/CMakeLists.txt" )
44
45 # Do all of the processing for this Tribits project
46 tribits_project()