mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[machineid] Change to calamares_add_test
- The test-macro handles cases without ECM or testing transparently. - Adds compile defines for STATICTEST.
This commit is contained in:
parent
6bdc4a55de
commit
637a57d534
1 changed files with 7 additions and 14 deletions
|
@ -9,17 +9,10 @@ calamares_add_plugin( machineid
|
|||
SHARED_LIB
|
||||
)
|
||||
|
||||
if ( ECM_FOUND AND BUILD_TESTING )
|
||||
ecm_add_test(
|
||||
Tests.cpp
|
||||
MachineIdJob.cpp
|
||||
Workers.cpp
|
||||
TEST_NAME
|
||||
machineidtest
|
||||
LINK_LIBRARIES
|
||||
calamares
|
||||
Qt5::Core
|
||||
Qt5::Test
|
||||
)
|
||||
calamares_automoc( machineidtest )
|
||||
endif()
|
||||
calamares_add_test(
|
||||
machineidtest
|
||||
SOURCES
|
||||
Tests.cpp
|
||||
MachineIdJob.cpp
|
||||
Workers.cpp
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue