Partitionmanager: partly fix PM-tests build

main
Adriaan de Groot 8 years ago
parent 4405790253
commit ea44021cb4

@ -21,10 +21,10 @@ if( NOT blkid_LIB )
endif()
add_subdirectory( tests )
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
include_directories( ${KPMCORE_INCLUDE_DIR} )
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
add_subdirectory( tests )
calamares_add_plugin( partition
TYPE viewmodule

@ -1,4 +1,6 @@
find_package( Qt5 COMPONENTS Test REQUIRED )
find_package( Qt5 COMPONENTS Gui Test REQUIRED )
find_package( KF5 COMPONENTS Service REQUIRED )
include( ECMAddTests )
set( PartitionModule_SOURCE_DIR .. )
@ -18,8 +20,10 @@ set( partitionjobtests_SRCS
)
include_directories(
${Qt5Gui_INCLUDE_DIRS}
${PartitionModule_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
ecm_add_test( ${partitionjobtests_SRCS}
@ -29,6 +33,7 @@ ecm_add_test( ${partitionjobtests_SRCS}
${CALAMARES_LIBRARIES}
Qt5::Core
Qt5::Test
KF5::Service
)
set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )

Loading…
Cancel
Save