[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:
Adriaan de Groot 2020-02-17 12:04:18 +01:00
parent 6bdc4a55de
commit 637a57d534

View File

@ -9,17 +9,10 @@ calamares_add_plugin( machineid
SHARED_LIB SHARED_LIB
) )
if ( ECM_FOUND AND BUILD_TESTING ) calamares_add_test(
ecm_add_test( machineidtest
Tests.cpp SOURCES
MachineIdJob.cpp Tests.cpp
Workers.cpp MachineIdJob.cpp
TEST_NAME Workers.cpp
machineidtest )
LINK_LIBRARIES
calamares
Qt5::Core
Qt5::Test
)
calamares_automoc( machineidtest )
endif()