There currently is no practical use to have TactilityHeadless as a subproject. I'm merging it with the Tactility project.
28 lines
542 B
CMake
28 lines
542 B
CMake
project(TactilityCoreTests)
|
|
|
|
enable_language(C CXX ASM)
|
|
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
file(GLOB_RECURSE TEST_SOURCES ${PROJECT_SOURCE_DIR}/*.cpp)
|
|
add_executable(TactilityTests EXCLUDE_FROM_ALL ${TEST_SOURCES})
|
|
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
|
|
target_include_directories(TactilityTests PRIVATE
|
|
${DOCTESTINC}
|
|
)
|
|
|
|
add_test(NAME TactilityTests
|
|
COMMAND TactilityTests
|
|
)
|
|
|
|
target_link_libraries(TactilityTests PRIVATE
|
|
Tactility
|
|
TactilityCore
|
|
Tactility
|
|
Simulator
|
|
SDL2::SDL2-static SDL2-static
|
|
)
|