Debian Codegraph @

debian/external_deps/fetk/gamer/CMakeLists.txt

raw
1 # Minimum version: 3.7.1 required by CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
2 cmake_minimum_required (VERSION 3.7.1)
3
4 message(NOTICE "Configuring build for GAMER")
5
6 project(gamer
7 VERSION ${FETK_VERSION}
8 LANGUAGES C CXX
9 )
10
11 # Include the common FETK CMake utilities
12 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
13 include(FETKBuildFunctions)
14
15
16 # Set essential variables and paths for the project
17 set_basic_vars_and_paths()
18 set(GAMER_VERSION ${gamer_VERSION})
19
20
21 ################################################################################
22 # Check for necessary headers and types
23 ################################################################################
24
25 header_and_type_checks()
26
27
28
29 # check for libraries
30
31 # check for disable vender-host-cpu triplet (?)
32
33 # readline library
34
35 # mpi library
36
37 # [embed check to be left out]
38
39 # debug compilation
40
41 # ansi/pedantic compilation
42
43 # profiling
44
45 # electric fence library (?)
46
47
48 ################################################################################
49 # Ensure we have the MALOC library
50 ################################################################################
51
52 # maloc library
53 if(NOT TARGET maloc)
54 list(APPEND GAMER_EXT_LIBS maloc)
55 else()
56 # include_directories(
57 # ${CMAKE_CURRENT_SOURCE_DIR}/../maloc/src/base
58 # ${CMAKE_CURRENT_SOURCE_DIR}/../maloc/src/psh
59 # ${CMAKE_CURRENT_SOURCE_DIR}/../maloc/src/vsh
60 # ${CMAKE_CURRENT_SOURCE_DIR}/../maloc/src/vsys
61 # )
62 list(APPEND GAMER_INT_LIBS maloc)
63 endif()
64
65
66 ################################################################################
67 # Build GAMER
68 ################################################################################
69
70 add_subdirectory(src)