Debian Codegraph @

cmake/tribits/examples/TribitsExampleProject/packages/simple_cxx/CMakeLists.txt

raw
1 #
2 # A) Define the package
3 #
4 tribits_package( SimpleCxx ENABLE_SHADOWING_WARNINGS CLEANED )
5
6 #
7 # B) Platform-specific checks
8 #
9 include(CheckFor__int64)
10 check_for___int64(HAVE_SIMPLECXX___INT64)
11 tribits_pkg_export_cache_var(HAVE_SIMPLECXX___INT64)
12
13 #
14 # C) Set up package-specific options
15 #
16 tribits_add_debug_option()
17 tribits_add_show_deprecated_warnings_option()
18
19 #
20 # D) Add the libraries, tests, and examples
21 #
22 add_subdirectory(src)
23 tribits_add_test_directories(test)
24
25 # Set a variable that will be used in downstream packages
26
27 if (SimpleCxx_ENABLE_SimpleTpl)
28 set(simpletplText "simpletpl ")
29 else()
30 set(simpletplText)
31 endif()
32
33 global_set(EXPECTED_SIMPLECXX_AND_DEPS
34 "SimpleCxx ${simpletplText}headeronlytpl")
35 tribits_pkg_export_cache_var(EXPECTED_SIMPLECXX_AND_DEPS)
36
37 #
38 # E) Do standard post processing
39 #
40 tribits_package_postprocess()