Always build tests to ease automatic testing

This commit is contained in:
Christian Hohnstaedt 2024-02-13 20:47:10 +01:00
parent a20e810405
commit 0d100615d7
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ ExpandSources(xcadoc)
macro(Test name)
set(${name}_sources ${ARGN})
add_executable(${name} EXCLUDE_FROM_ALL ${name}.cpp)
add_executable(${name} ${name}.cpp)
ExpandSources(${name})
target_link_libraries(${name} PRIVATE
OpenSSL::Crypto ${QT}::Core ${QT}::Test ${QT}::Sql ${ASAN_LIB}

View File

@ -4,8 +4,7 @@ list(APPEND srcs PwDialogMock.h importPEM.cpp main.cpp main.h
list(TRANSFORM srcs PREPEND ${PROJECT_SOURCE_DIR}/test/)
add_executable(testxca EXCLUDE_FROM_ALL
img/imgres.qrc ${srcs}
add_executable(testxca img/imgres.qrc ${srcs}
${UI_FILES} ${PROJECT_BINARY_DIR}/local.h)
add_test(NAME testxca COMMAND testxca)