2014-07-17 17:57:55 +02:00
|
|
|
find_package( Qt5 COMPONENTS Test REQUIRED )
|
|
|
|
include( ECMAddTests )
|
|
|
|
|
|
|
|
set( jobtests_SRCS
|
2014-08-06 11:49:04 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/CheckFileSystemJob.cpp
|
2014-07-17 17:57:55 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/CreatePartitionJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/CreatePartitionTableJob.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/DeletePartitionJob.cpp
|
2014-08-05 17:38:26 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/MoveFileSystemJob.cpp
|
2014-07-23 18:14:27 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/PartitionInfo.cpp
|
|
|
|
${PartitionModule_SOURCE_DIR}/PartitionIterator.cpp
|
2014-07-18 14:29:27 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/PartitionJob.cpp
|
2014-07-17 17:57:55 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/PMUtils.cpp
|
2014-08-05 14:57:00 +02:00
|
|
|
${PartitionModule_SOURCE_DIR}/ResizePartitionJob.cpp
|
2014-07-17 17:57:55 +02:00
|
|
|
JobTests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PartitionModule_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_add_test( ${jobtests_SRCS}
|
|
|
|
TEST_NAME jobtests
|
|
|
|
LINK_LIBRARIES
|
|
|
|
calapm
|
|
|
|
${CALAMARES_LIBRARIES}
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Test
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties( jobtests PROPERTIES AUTOMOC TRUE )
|