mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Always build tests to ease automatic testing
This commit is contained in:
parent
a20e810405
commit
0d100615d7
@ -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}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user