-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
36 lines (28 loc) · 1.36 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
cmake_minimum_required(VERSION 3.6)
project(CompareAdiosKernels)
###############################################################################
set(CMAKE_CXX_STANDARD 11)
find_package(Boost REQUIRED COMPONENTS mpi serialization system filesystem
program_options)
find_package(MPI REQUIRED)
###############################################################################
# ADIOS
###############################################################################
find_program(ADIOS_CONFIG_EXECUTABLE NAMES adios_config)
execute_process(COMMAND ${ADIOS_CONFIG_EXECUTABLE} -d OUTPUT_VARIABLE
adios_root OUTPUT_STRIP_TRAILING_WHITESPACE)
#execute_process(COMMAND ${ADIOS_CONFIG_EXECUTABLE} -c OUTPUT_VARIABLE
# adios_inc OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${ADIOS_CONFIG_EXECUTABLE} -l OUTPUT_VARIABLE
adios_lib OUTPUT_STRIP_TRAILING_WHITESPACE)
###############################################################################
set(SOURCE_FILES main.cpp Params.cpp)
set(CMAKE_INCLUDE_CURRENT_DIR on)
include_directories(${BOOST_INCLUDE_DIRS}
${MPI_INCLUDE_PATH}
${adios_root}/include)
add_executable(CompareAdiosKernels ${SOURCE_FILES})
target_link_libraries(CompareAdiosKernels
${MPI_CXX_LIBRARIES}
${Boost_LIBRARIES}
${adios_lib})