CMakeLists.txt 791 Bytes
Newer Older
1
2
3
cmake_minimum_required(VERSION 2.6)
project(load_leveller)

4
5
6
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

7
8
find_package(MPI REQUIRED)
set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER})
9
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -O3 -std=c++17 -pedantic ${MPI_LINK_FLAGS} ${MPI_COMPILE_FLAGS}")
10
11
include_directories(${MPI_INCLUDE_PATH})

Lukas Weber's avatar
Lukas Weber committed
12
13
14
15
set(HDF5_USE_STATIC_LIBRARIES)
find_package(HDF5 REQUIRED)
include_directories(${HDF5_INCLUDE_DIR})
add_definitions(${HDF5_C_DEFINITIONS})
16
17
18
19
20
21
22
23
24

set(SRCs
	dump.cpp
	evalable.cpp
	measurements.cpp 
	observable.cpp
	parser.cpp
	random.cpp
	runner.cpp
25
	merger.cpp
26
	mc.cpp
27
	runner_single.cpp
28
29
)

Lukas Weber's avatar
test3    
Lukas Weber committed
30
add_library(load_leveller ${SRCs})
31
add_library(load_leveller STATIC ${SRCs})
Lukas Weber's avatar
test2    
Lukas Weber committed
32
#target_link_libraries(load_leveller ${MPI_LIBRARIES} ${CONAN_LIBS})