source: calamares/trunk/fuentes/src/modules/partition/tests/CMakeLists.txt @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.0 KB
Line 
1find_package( Qt5 COMPONENTS Gui Test REQUIRED )
2
3include( ECMAddTests )
4
5set( PartitionModule_SOURCE_DIR .. )
6
7set( partitionjobtests_SRCS
8    ${PartitionModule_SOURCE_DIR}/core/KPMHelpers.cpp
9    ${PartitionModule_SOURCE_DIR}/core/PartitionInfo.cpp
10    ${PartitionModule_SOURCE_DIR}/core/PartitionIterator.cpp
11    ${PartitionModule_SOURCE_DIR}/jobs/CreatePartitionJob.cpp
12    ${PartitionModule_SOURCE_DIR}/jobs/CreatePartitionTableJob.cpp
13    ${PartitionModule_SOURCE_DIR}/jobs/DeletePartitionJob.cpp
14    ${PartitionModule_SOURCE_DIR}/jobs/PartitionJob.cpp
15    ${PartitionModule_SOURCE_DIR}/jobs/ResizePartitionJob.cpp
16    PartitionJobTests.cpp
17)
18
19include_directories(
20    ${Qt5Gui_INCLUDE_DIRS}
21    ${PartitionModule_SOURCE_DIR}
22    ${CMAKE_CURRENT_SOURCE_DIR}
23    ${CMAKE_CURRENT_BINARY_DIR}
24)
25
26ecm_add_test( ${partitionjobtests_SRCS}
27    TEST_NAME partitionjobtests
28    LINK_LIBRARIES
29        ${CALAMARES_LIBRARIES}
30        kpmcore
31        Qt5::Core
32        Qt5::Test
33)
34
35set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )
Note: See TracBrowser for help on using the repository browser.