Commit 9e6470b1 authored by Alex Merry's avatar Alex Merry

Add buildtests target

The check target depends on it, but it did not exist.
parent 65dd8ccf
......@@ -5,6 +5,8 @@ if(NOT Qt5Test_FOUND)
return()
endif()
add_custom_target(buildtests)
add_subdirectory(auto)
add_subdirectory(manual)
......
......@@ -3,6 +3,7 @@ include(ECMAddTests)
macro(gv_add_unit_test _test)
set(_src ${_test}.cpp ${ARGN})
add_executable(${_test} ${_src})
add_dependencies(buildtests ${_test})
add_test( ${_test} ${_test} )
ecm_mark_as_test(${_test})
target_link_libraries(${_test}
......
......@@ -8,6 +8,7 @@ set(slidecontainertest_SRCS
)
add_executable(slidecontainertest ${slidecontainertest_SRCS})
add_dependencies(buildtests slidecontainertest)
ecm_mark_as_test(slidecontainertest)
target_link_libraries(slidecontainertest
......@@ -21,6 +22,7 @@ set(imageloadbench_SRCS
)
add_executable(imageloadbench ${imageloadbench_SRCS})
add_dependencies(buildtests imageloadbench)
ecm_mark_as_test(imageloadbench)
target_link_libraries(imageloadbench
......@@ -35,6 +37,7 @@ set(thumbnailgen_SRCS
)
add_executable(thumbnailgen ${thumbnailgen_SRCS})
add_dependencies(buildtests thumbnailgen)
ecm_mark_as_test(thumbnailgen)
target_link_libraries(thumbnailgen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment