Debian Codegraph @

cmake/tribits/examples/TribitsExampleProject/CMakeLists.txt

raw
1 ################################################################################
2 # #
3 # TribitsExampleProject #
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 set(TRIBITS_HIDE_DEPRECATED_INCLUDE_DIRECTORIES_OVERRIDE TRUE)
31
32 #
33 # B) Pull in the TriBITS system and execute
34 #
35
36 set(${PROJECT_NAME}_TRIBITS_DIR
37 "${CMAKE_CURRENT_LIST_DIR}/../.." CACHE STRING
38 "TriBITS base directory (default assumes in TriBITS source tree)")
39 include("${${PROJECT_NAME}_TRIBITS_DIR}/TriBITS.cmake")
40
41 # Set default location for header-only TPL to make easy to configure out of
42 # the TriBITS source tree.
43 set(HeaderOnlyTpl_INCLUDE_DIRS
44 "${${PROJECT_NAME}_TRIBITS_DIR}/examples/tpls/HeaderOnlyTpl"
45 CACHE PATH "Default set by TriBITS/CMakeLists.txt" )
46
47 # Do all of the processing for this Tribits project
48 tribits_project()