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

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

sync with github

File size: 949 bytes
Line 
1include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
2
3find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network )
4
5find_package( LIBPARTED )
6if ( LIBPARTED_FOUND )
7    set( PARTMAN_SRC checker/partman_devices.c )
8    set( CHECKER_LINK_LIBRARIES ${LIBPARTED_LIBRARY} )
9else()
10    set( PARTMAN_SRC )
11    set( CHECKER_LINK_LIBRARIES )
12    add_definitions( -DWITHOUT_LIBPARTED )
13endif()
14
15include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
16
17set( CHECKER_SOURCES
18    checker/CheckItemWidget.cpp
19    checker/CheckerWidget.cpp
20    checker/RequirementsChecker.cpp
21    ${PARTMAN_SRC}
22)
23
24calamares_add_plugin( welcome
25    TYPE viewmodule
26    EXPORT_MACRO PLUGINDLLEXPORT_PRO
27    SOURCES
28        ${CHECKER_SOURCES}
29        WelcomeViewStep.cpp
30        WelcomePage.cpp
31    UI
32        WelcomePage.ui
33    LINK_PRIVATE_LIBRARIES
34        calamaresui
35        ${CHECKER_LINK_LIBRARIES}
36        Qt5::DBus
37        Qt5::Network
38    SHARED_LIB
39)
Note: See TracBrowser for help on using the repository browser.