CMakeLists.txt 714 Bytes
Newer Older
plgruener's avatar
plgruener committed
1
cmake_minimum_required(VERSION 3.1.3)
2
project(dynamicsystems LANGUAGES CXX)
3 4

set(CMAKE_CXX_STANDARD 11)
5
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
6

7
find_package(OpenMP)
8
add_executable(dynamicsystems main.cpp compute.cpp)
9 10
if(OPENMP_FOUND)
  #target_compile_options(dynamicsystems PRIVATE ${OpenMP_CXX_FLAGS})
Lars Kuehne's avatar
Lars Kuehne committed
11
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
12 13
endif()

Christoph Saffer's avatar
Christoph Saffer committed
14 15
find_package(Boost REQUIRED)
target_include_directories(dynamicsystems PRIVATE ${Boost_INCLUDE_DIR})
Lars Kuehne's avatar
Lars Kuehne committed
16
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lboost_program_options")
Christoph Saffer's avatar
Christoph Saffer committed
17

18

19
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
Christoph Saffer's avatar
Christoph Saffer committed
20
  target_compile_options(dynamicsystems PRIVATE "-std=c++11" "-qopt-report=5" "-qopt-report-phase=vec" "-xhost")
plgruener's avatar
plgruener committed
21
endif()