-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (49 loc) · 1.87 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 2.4)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
project(iseql-cpp CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_LIBCPP_DEBUG=0 -D_LIBCPP_DEBUG2=0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic -Wall -Wextra -Wconversion -Wdisabled-optimization")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weverything")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-date-time")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-shadow")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++98-compat")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++98-compat-pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-float-equal")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-padded")
endif()
OPTION(COUNTERS "Enable algorithm performance counters" OFF)
if (COUNTERS)
message("## Enabling counters ##")
add_definitions(-DCOUNTERS)
endif()
OPTION(EBI "Enable EBI algorithm instead of LEBI" OFF)
if (EBI)
message("## Enabling EBI ##")
add_definitions(-DEBI)
endif()
add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(result-processor)
SET(MY_REMOTE_LOCATION im:iseql-cpp)
SET(IL_REMOTE_LOCATION im:iseql-il)
add_custom_target(upload-to-ironmaiden
COMMAND rsync -aPvz
--exclude='.*' --exclude=results --exclude=target
${CMAKE_CURRENT_SOURCE_DIR}/
${MY_REMOTE_LOCATION})
add_custom_target(upload-to-ironlady
COMMAND rsync -aPvz
--exclude='.*' --exclude=results --exclude=target
${CMAKE_CURRENT_SOURCE_DIR}/
${IL_REMOTE_LOCATION})
add_custom_target(downloads-results-from-ironmaiden
COMMAND rsync -aPvzL
--exclude='.*'
${MY_REMOTE_LOCATION}/results/
${CMAKE_CURRENT_SOURCE_DIR}/results)