-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
22 lines (22 loc) · 944 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required (VERSION 3.7.2)
project (zorder_test)
set (CMAKE_CXX_FLAGS "-Wall -Wextra -Ofast")
set (CMAKE_CXX_STANDARD 11)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
find_package( MPI )
include_directories( SYSTEM ${MPI_INCLUDE_PATH} )
find_package( Boost )
include_directories( ${Boost_INCLUDE_DIRS} )
add_executable(test2d test2d.cpp)
target_link_libraries(test2d Boost::boost ${MPI_CXX_LIBRARIES})
add_executable(test3d test3d.cpp)
target_link_libraries(test3d Boost::boost ${MPI_CXX_LIBRARIES})
add_executable(test_fdtd test_fdtd.cpp)
target_link_libraries(test_fdtd Boost::boost ${MPI_CXX_LIBRARIES})
add_executable(test_ndfx test_ndfx.cpp)
target_link_libraries(test_ndfx Boost::boost ${MPI_CXX_LIBRARIES})