Skip to content

Commit

Permalink
Rework test CMake file.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Nov 23, 2024
1 parent 8c4a3c1 commit eb593c1
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
project(tests)
SET(PROJECT_TEST ${PROJECT_NAME}-test )

set(SOURCES
Tests.cpp
UtilitiesTest.cpp
GroupPlotUITest.cpp
QuantilesTest.cpp
)
include_directories(${CMAKE_SOURCE_DIR})

set(HEADERS
set(${PROJECT_TEST}_SOURCES
Tests.cpp
UtilitiesTest.h
UtilitiesTest.cpp
GroupPlotUITest.h
GroupPlotUITest.cpp
QuantilesTest.h
QuantilesTest.cpp
)

add_executable(tests ${SOURCES} ${HEADERS})

target_link_libraries(tests PRIVATE qwtble Qt6::Test Qt6::Widgets)

add_test(NAME tests COMMAND tests)
add_executable(${PROJECT_TEST} ${${PROJECT_TEST}_SOURCES})
target_link_libraries(${PROJECT_TEST} PRIVATE qwtble Qt6::Test Qt6::Widgets)

add_test(NAME ${PROJECT_TEST} COMMAND ${PROJECT_TEST})

0 comments on commit eb593c1

Please sign in to comment.