1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
find_package(Catch2 2.3.0 REQUIRED)
find_package(Qt5 COMPONENTS Test)
add_executable(test_nodes
test_main.cpp
src/TestDragging.cpp
src/TestDataModelRegistry.cpp
src/TestNodeGraphicsObject.cpp
src/TestFlowScene.cpp
)
target_include_directories(test_nodes
PRIVATE
../src
../include/internal
include
)
target_link_libraries(test_nodes
PRIVATE
NodeEditor::nodes
Catch2::Catch2
Qt5::Test
)
add_test(
NAME test_nodes
COMMAND
$<TARGET_FILE:test_nodes>
$<$<BOOL:${NE_FORCE_TEST_COLOR}>:--use-colour=yes>
)
|