CMakeLists.txt 662 Bytes
Newer Older
1
2
3
cmake_minimum_required (VERSION 2.8.11)
project (PRRT)

Andreas Schmidt's avatar
Andreas Schmidt committed
4
5
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
6
7
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

8
set(CMAKE_CXX_FLAGS "-fstack-protector -fstack-protector-all -Wall -pedantic " )
Andreas Schmidt's avatar
Andreas Schmidt committed
9
10
11
set(CMAKE_CXX_FLAGS_DEBUG "-O2 -Wall -ggdb" )
set(CMAKE_CXX_FLAGS_RELEASE "-Os -Wall" )

12

13
enable_testing()
14

15
find_package (Threads)
16
17
find_library(M_LIB m)

18

19
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
20

21
add_subdirectory(prrt)
22
23
24
add_subdirectory(tests)

add_custom_target(funtest ./bin/prrtTests)
25
add_custom_target(perftest python3 eval.py)