-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (47 loc) · 1.7 KB
/
CMakeLists.txt
File metadata and controls
58 lines (47 loc) · 1.7 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
################################################################################
# CMakeLists.txt
#
# Copyright (C) 2018 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
#
# All rights reserved. Published under the BSD-2 license in the LICENSE file.
################################################################################
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/external/misc/cmake")
project(dsss)
add_compile_options(-std=c++17)
add_compile_options(-O3)
add_compile_options(-march=native)
add_compile_options(-Wall)
#add_compile_options(-g)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(DSSS_OVERSUBSCRIBE
"Run tests with mpirun [...] --oversubscribe.
This may be necessary for environments with less than four cores." OFF)
# needs to be set on fedora?
#set(CMAKE_PREFIX_PATH /usr/lib64/openmpi)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif(NOT CMAKE_BUILD_TYPE)
enable_testing()
# TODO: Look for a "modern" (target based) working way
find_package(MPI REQUIRED)
if (MPI_FOUND)
message(STATUS "MPI FOUND: ${MPI_C_INCLUDE_PATH}")
include_directories(SYSTEM ${MPI_INCLUDE_PATH})
message("blabla " ${MPI_LIBRARIES})
endif()
#add_subdirectory(external/dsss)
#add_subdirectory(external/benchmark)
#add_subdirectory(external/external)
#add_subdirectory(external/tests)
include_directories(KaDiS)
include_directories(src)
#include_directories(tlx)
include_directories(ips4o)
add_subdirectory(tlx)
#add_subdirectory(NeuKaDiS/KaDiS)
add_subdirectory(src)
#add_subdirectory(kurpicz)
message(STATUS "Built Type: " ${CMAKE_BUILD_TYPE} )
################################################################################