calamares/src/modules/partition/tests/CMakeLists.txt

35 lines
1.1 KiB
CMake
Raw Normal View History

find_package( Qt5 COMPONENTS Test REQUIRED )
include( ECMAddTests )
set( PartitionModule_SOURCE_DIR .. )
2014-08-08 13:39:19 +02:00
set( partitionjobtests_SRCS
${PartitionModule_SOURCE_DIR}/core/PMUtils.cpp
${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
)
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
LINK_LIBRARIES
calapm
${CALAMARES_LIBRARIES}
Qt5::Core
Qt5::Test
)
2014-08-08 13:39:19 +02:00
set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )