ADD: added Catch2 test; added TrackClass
This commit is contained in:
@@ -3,6 +3,11 @@ project (SimCore VERSION 0.1.0 LANGUAGES CXX C)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
include(defaultOptions)
|
||||
|
||||
IF(NOT TARGET Catch2)
|
||||
add_subdirectory(libs/Catch2 EXCLUDE_FROM_ALL)
|
||||
include(libs/Catch2/contrib/Catch.cmake)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT TARGET eigen)
|
||||
set(EIGEN_BUILD_DOC OFF CACHE INTERNAL "")
|
||||
add_subdirectory(libs/eigen EXCLUDE_FROM_ALL)
|
||||
@@ -69,16 +74,20 @@ target_include_directories(SimCore PUBLIC
|
||||
# src)
|
||||
|
||||
|
||||
# #
|
||||
# # Everything TEST related
|
||||
# #
|
||||
# option(TEST_WHISPER_COMMUNICATION_LIBRARY "Turn running of application template specific tests off" ON)
|
||||
#
|
||||
# Everything TEST related
|
||||
#
|
||||
option(TEST_SIMCORE_LIBRARY "Turn running of application template specific tests off" ON)
|
||||
|
||||
# IF (${TEST_WHISPER_COMMUNICATION_LIBRARY})
|
||||
IF (${TEST_SIMCORE_LIBRARY})
|
||||
|
||||
# add_executable(test_test tests/test_test.cpp)
|
||||
# target_link_libraries(test_test Catch2::Catch2 whisper-com loguru)
|
||||
# catch_discover_tests(test_test)
|
||||
add_executable(test_PositionClass tests/test_PositionClass.cpp)
|
||||
target_link_libraries(test_PositionClass Catch2::Catch2 SimCore eigen loguru)
|
||||
catch_discover_tests(test_PositionClass)
|
||||
|
||||
add_executable(test_TrackClass tests/test_TrackClass.cpp)
|
||||
target_link_libraries(test_TrackClass Catch2::Catch2 SimCore eigen loguru)
|
||||
catch_discover_tests(test_TrackClass)
|
||||
|
||||
|
||||
# ENDIF()
|
||||
ENDIF()
|
||||
|
||||
Reference in New Issue
Block a user