2014-07-17 17:57:55 +02:00
|
|
|
find_package( Qt5 COMPONENTS Test REQUIRED )
|
|
|
|
include( ECMAddTests )
|
|
|
|
|
2015-07-01 18:57:25 +02:00
|
|
|
set( PartitionModule_SOURCE_DIR .. )
|
|
|
|
|
2014-08-08 13:39:19 +02:00
|
|
|
set( partitionjobtests_SRCS
|
2015-09-18 15:41:07 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/core/KPMHelpers.cpp
|
2014-08-08 13:25:56 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/core/PartitionInfo.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/core/PartitionIterator.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/CheckFileSystemJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/CreatePartitionJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/CreatePartitionTableJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/DeletePartitionJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/MoveFileSystemJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/PartitionJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/jobs/ResizePartitionJob.cpp
|
2014-08-08 13:39:19 +02:00
|
|
|
PartitionJobTests.cpp
|
2014-07-17 17:57:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PartitionModule_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2014-08-08 13:39:19 +02:00
|
|
|
ecm_add_test( ${partitionjobtests_SRCS}
|
|
|
|
TEST_NAME partitionjobtests
|
2014-07-17 17:57:55 +02:00
|
|
|
LINK_LIBRARIES
|
|
|
|
calapm
|
|
|
|
${CALAMARES_LIBRARIES}
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Test
|
|
|
|
)
|
|
|
|
|
2014-08-08 13:39:19 +02:00
|
|
|
set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )
|