-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (26 loc) · 921 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
33 lines (26 loc) · 921 Bytes
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
cmake_minimum_required(VERSION 2.8.12)
project(Parallel)
if (CMAKE_C_COMPILER MATCHES "icc")
message(STATUS "Using Intel C/C++ Compiler")
set(ICC)
endif (CMAKE_C_COMPILER MATCHES "icc")
set(CMAKE_CXX_STANDARD 11)
if (ICC)
set(CMAKE_CXX_FLAGS -O3\ -xHOST\ -ipo)
set(CMAKE_C_FLAGS -O3\ -xHOST\ -ipo)
else (ICC)
set(CMAKE_CXX_FLAGS -O3)
set(CMAKE_C_FLAGS -O3)
endif(ICC)
include(CheckCXXSymbolExists)
check_cxx_symbol_exists(sincos math.h HAVE_SINCOS)
check_cxx_symbol_exists(__sincos math.h HAVE___SINCOS)
if(HAVE_SINCOS)
add_definitions(-DHAVE_SINCOS)
endif()
if(HAVE___SINCOS)
add_definitions(-DHAVE___SINCOS)
endif()
add_executable(parallel src/parallel.h src/parallel.cpp src/args.cpp src/args.h src/error.cpp src/error.h src/strings.cpp src/strings.h src/macros.h src/gcc_version.h app/main.cpp)
#FIXME Intersting, no need in WIN10
target_link_libraries(parallel pthread)