[initcpio] [initramfs] Set compilation options on tests

- calamares_automoc() sets AUTOMOC, but also adds some flags
   to avoid compilation warnings from the generated MOC code.
 - drop weird hard-coded include paths
This commit is contained in:
Adriaan de Groot 2019-08-09 16:29:55 +02:00
parent 739363cecd
commit e81bd52fb5
2 changed files with 2 additions and 4 deletions

View File

@ -21,6 +21,5 @@ if( ECM_FOUND AND BUILD_TESTING )
Qt5::Core Qt5::Core
Qt5::Test Qt5::Test
) )
set_target_properties( initcpiotest PROPERTIES AUTOMOC TRUE ) calamares_automoc( initcpiotest )
target_include_directories( initcpiotest PRIVATE /usr/local/include )
endif() endif()

View File

@ -21,6 +21,5 @@ if( ECM_FOUND AND BUILD_TESTING )
Qt5::Core Qt5::Core
Qt5::Test Qt5::Test
) )
set_target_properties( initramfstest PROPERTIES AUTOMOC TRUE ) calamares_automoc( initramfstest )
target_include_directories( initramfstest PRIVATE /usr/local/include )
endif() endif()