[calamares] Move testing application out of intermediate dir

- src/modules doesn't seem like a really good place for stray sources
  for a testing application. Move it.
This commit is contained in:
Adriaan de Groot 2020-05-08 21:20:22 +02:00
parent 74fb88f9ac
commit 91f88cebf0
3 changed files with 4 additions and 7 deletions

View File

@ -60,7 +60,10 @@ install( FILES ${CMAKE_SOURCE_DIR}/data/images/squid.svg
)
if( BUILD_TESTING )
# Don't install, these are just for enable_testing
add_executable( loadmodule testmain.cpp )
target_link_libraries( loadmodule PRIVATE Qt5::Core Qt5::Widgets calamares calamaresui )
# Don't install, it's just for enable_testing
add_executable( test_conf test_conf.cpp )
target_link_libraries( test_conf PUBLIC yamlcpp Qt5::Core )
endif()

View File

@ -10,12 +10,6 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/libcalamaresui
)
if( BUILD_TESTING )
add_executable( test_conf test_conf.cpp )
target_link_libraries( test_conf yamlcpp Qt5::Core )
target_include_directories( test_conf PUBLIC ${YAMLCPP_INCLUDE_DIR} )
endif()
string( REPLACE " " ";" SKIP_LIST "${SKIP_MODULES}" )
file( GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*" )