CMakeLists.txt 504 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)
plgruener's avatar
plgruener committed
8
add_executable(dynamicsystems main.cpp)
9 10 11 12 13
if(OPENMP_FOUND)
  #target_compile_options(dynamicsystems PRIVATE ${OpenMP_CXX_FLAGS})
  set(CMAKE_CXX_FLAGS ${OpenMP_CXX_FLAGS})
endif()

14

15 16
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
  target_compile_options(dynamicsystems PRIVATE "-std=c++11" "-qopt-report=5" "-qopt-report-phase=vec")
plgruener's avatar
plgruener committed
17
endif()