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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# CMakeLists for Listaller GTK+ Frontend
find_package(Vala REQUIRED)
include("${VALA_USE_FILE}")
find_package(GLIB2 REQUIRED)
find_package(Gettext REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
pkg_check_modules(GEE REQUIRED gee-1.0)
pkg_check_modules(LISTALLER REQUIRED listaller-glib)
set (LISETUPGTK_SOURCES utils.vala
li-setup.vala
)
set (LIMANAGERGTK_SOURCES utils.vala
li-manager.vala
appicon.vala
cellrenderer-uri.vala
)
include_directories(${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${GLIB2_INCLUDE_DIR}
${GEE_INCLUDE_DIRS}
${GTK3_INCLUDE_DIRS}
${LISTALLER_INCLUDE_DIRS}
/usr/include/listaller-glib
)
if (NOT ${GTK3_FOUND})
message(FATAL_ERROR "GTK3 was not found! Please install GTK3 to continue!")
endif ()
# Listaller Setup GUI
vala_add_executable (lisetup-gtk ${LISETUPGTK_SOURCES}
PACKAGES config glib-2.0 listaller-0.5 gee-1.0 gtk+-3.0
VAPI_DIRS ${CMAKE_SOURCE_DIR}/vapi
COMPILE_FLAGS --thread
)
target_link_libraries(lisetup-gtk
${GLIB2_LIBRARIES}
${GEE_LIBRARIES}
${GTK3_LIBRARIES}
${LISTALLER_LIBRARIES}
)
install(TARGETS lisetup-gtk DESTINATION bin)
# Listaller AppManager GUI
vala_add_executable (limanager-gtk ${LIMANAGERGTK_SOURCES}
PACKAGES config glib-2.0 listaller-0.5 gee-1.0 gtk+-3.0
VAPI_DIRS ${CMAKE_SOURCE_DIR}/vapi
COMPILE_FLAGS --thread
)
target_link_libraries(limanager-gtk
${GLIB2_LIBRARIES}
${GEE_LIBRARIES}
${GTK3_LIBRARIES}
${LISTALLER_LIBRARIES}
)
install(TARGETS limanager-gtk DESTINATION bin)
|