-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
47 lines (38 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright (c) 2017-2021 Triad National Security, LLC
# All rights reserved.
#
# This file is part of the mpimemu project. See the LICENSE file at the
# top-level directory of this distribution.
#
# Set minimum required cmake version
cmake_minimum_required(VERSION 3.19)
project(memnesia VERSION 0.0.1 LANGUAGES C CXX)
# Enable C++11 support.
set (CMAKE_CXX_STANDARD 11)
# Generate a compile_commands.json file (for development tools)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Wextra -g \
-D_GNU_SOURCE -D__STDC_FORMAT_MACROS \
-Wno-deprecated-declarations"
)
set(
CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -Wall -Wextra -g \
-D_GNU_SOURCE -D__STDC_FORMAT_MACROS \
-Wno-deprecated-declarations"
)
# rpath everything.
option(
CMAKE_INSTALL_RPATH_USE_LINK_PATH
"Add rpath for all dependencies."
TRUE
)
function(emit_package_status name)
if (${name}_FOUND)
message(STATUS "Using ${name} found in ${${name}_DIR}.")
endif()
endfunction()
add_subdirectory(trace)
add_subdirectory(test)