-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (30 loc) · 1.02 KB
/
CMakeLists.txt
File metadata and controls
40 lines (30 loc) · 1.02 KB
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
cmake_minimum_required (VERSION 3.6)
project (EvntConsistColl)
include(GNUInstallDirs)
# switch for enabling unit tests. GTEST_ROOT directory
# needs to be set. default: ON
# set (Test OFF)
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_BUILD_TYPE Release)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -pedantic -fpermissive")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
set (CMAKE_SHARED_LINKER_FLAGS "-Wl")
# add GPI2
# if GPI-2 has NOT been loaded as a module, then set appropriately
# the environment variable $PKG_CONFIG_PATH in the row below
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:$ENV{GASPI_HOME}/lib64/pkgconfig")
FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(GPI2 REQUIRED GPI2>=1.3.0)
include_directories ( ${GPI2_INCLUDE_DIRS} )
link_directories ( ${GPI2_LIBRARY_DIRS} )
include_directories (
${GPI2_INCLUDE_DIRS}
)
link_directories (
${GPI2_LIBRARY_DIRS}
)
add_subdirectory (src)
add_subdirectory (examples)
#if (Test)
# add_subdirectory (tests)
#endif (Test)