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

Compiling tests is now an option.

parent c34c5f92
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:
+8 −3
Original line number Diff line number Diff line
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)

if(PRRT_TESTS)
    enable_testing()

    add_subdirectory(tests)
endif()

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