Commit 47e142a9 authored by Andreas Schmidt's avatar Andreas Schmidt

Compiling tests is now an option.

parent c34c5f92
Pipeline #1008 failed with stages
in 5 minutes and 50 seconds
......@@ -24,7 +24,7 @@ build_prrt:
- which g++
- pip3 list | grep Cython
- pip3 list | grep numpy
- CC=gcc-5 CXX=g++-5 cmake .
- CC=gcc-5 CXX=g++-5 cmake . -DPRRT_TESTS
- make
build_container:
......
cmake_minimum_required (VERSION 2.8.11)
project (PRRT)
option(PRRT_TESTS "Build tests" OFF)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
......@@ -11,8 +13,6 @@ set(CMAKE_CXX_FLAGS_DEBUG "-O2 -Wall -ggdb" )
set(CMAKE_CXX_FLAGS_RELEASE "-Os -Wall" )
enable_testing()
find_package (Threads)
find_library(M_LIB m)
......@@ -20,7 +20,12 @@ find_library(M_LIB m)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(prrt)
add_subdirectory(tests)
if(PRRT_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
add_custom_target(funtest COMMAND ./bin/prrtTests)
add_custom_target(perftest COMMAND python3 eval.py)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment