File: CMakeLists.txt

package info (click to toggle)
apper 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,968 kB
  • sloc: cpp: 14,382; xml: 970; makefile: 15; sh: 4
file content (36 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# CMakeLists for Apper AppSetup

pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.36)
pkg_check_modules(LIMBA REQUIRED limba>=0.2.0)
pkg_check_modules(APPSTREAM REQUIRED appstream>=0.7.6)

include_directories(${CMAKE_CURRENT_BINARY_DIR}
        ${GLIB2_INCLUDE_DIR}
        ${LIMBA_INCLUDE_DIRS}
        ${APPSTREAM_INCLUDE_DIRS}
)

set(AppSetup_SRCS main.cpp
    SetupWizard.cpp
    SimplePage.cpp
)

ki18n_wrap_ui(AppSetup_SRCS
    SetupWizard.ui
    SimplePage.ui
)

add_executable(apper-appsetup ${AppSetup_SRCS})

set_target_properties(apper-appsetup PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/apper)

target_link_libraries(apper-appsetup
        ${KDE4_KDEUI_LIBS}
        ${GLIB2_LIBRARIES}
        ${LIMBA_LIBRARIES}
        ${APPSTREAM_LIBRARIES}
        apper_private
)

install(TARGETS apper-appsetup RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES apper_appsetup.desktop DESTINATION ${CMAKE_INSTALL_APPDIR})