mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
Make the dependencie to Qt5Test optional
This commit is contained in:
parent
3c16572525
commit
da5ce322c5
@ -1,4 +1,15 @@
|
|||||||
include(ECMAddTests)
|
include(ECMAddTests)
|
||||||
find_package(Qt5Test)
|
find_package(Qt5Test QUIET)
|
||||||
|
|
||||||
|
set_package_properties(Qt5Core PROPERTIES
|
||||||
|
DESCRIPTION "Qt5 unit testing framework"
|
||||||
|
URL "http://www.qt.io"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Required to build the unit tests"
|
||||||
|
)
|
||||||
|
|
||||||
|
if(NOT Qt5Test_FOUND)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
ecm_add_tests( snorebenchmark.cpp LINK_LIBRARIES Snore::Libsnore Qt5::Test)
|
ecm_add_tests( snorebenchmark.cpp LINK_LIBRARIES Snore::Libsnore Qt5::Test)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user