-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
85 lines (70 loc) · 2.74 KB
/
CMakeLists.txt
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
project (configurator)
cmake_minimum_required (VERSION 2.8)
cmake_policy (VERSION 2.6)
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share/com.github.cassidyjames.configurator")
set (PKGDATADIR "${DATADIR}/com.github.cassidyjames.configurator")
set (GETTEXT_PACKAGE "com.github.cassidyjames.configurator")
set (RELEASE_NAME "com.github.cassidyjames.configurator")
set (VERSION "0.1.1")
set (VERSION_INFO "Release")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (DOLLAR "$")
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
file(GLOB_RECURSE sources src/*.vala)
configure_file (${CMAKE_SOURCE_DIR}/src/config.vala.cmake ${CMAKE_SOURCE_DIR}/src/config.vala)
find_package (Vala REQUIRED)
include (ValaVersion)
ensure_vala_version ("0.18" MINIMUM)
include (ValaPrecompile)
add_definitions (-DGETTEXT_PACKAGE="com.github.cassidyjames.configurator")
find_package(PkgConfig)
pkg_check_modules(DEPS REQUIRED granite gtk+-3.0 gthread-2.0 gio-2.0)
add_definitions(${DEPS_CFLAGS})
link_libraries(${DEPS_LIBRARIES})
link_directories(${DEPS_LIBRARY_DIRS})
find_package(Vala REQUIRED)
include(ValaVersion)
ensure_vala_version("0.16.0" MINIMUM)
include(ValaPrecompile)
vala_precompile(VALA_C
src/config.vala
src/configurator.vala
src/MainWindow.vala
src/Utils.vala
src/Widgets/TitleBar.vala
src/Widgets/BrowserView.vala
src/Widgets/EventsView.vala
src/Widgets/InfoScreen.vala
src/Widgets/SchemaList.vala
src/Widgets/Schema.vala
src/Widgets/SchemaFolder.vala
src/Widgets/KeyList.vala
src/Widgets/Key.vala
src/Widgets/KeyInfo.vala
src/Widgets/Fields/BoolInput.vala
src/Widgets/Fields/StringInput.vala
src/Widgets/Fields/SelectInput.vala
src/Widgets/Fields/IntegerInput.vala
src/Widgets/Fields/UIntegerInput.vala
src/Widgets/Fields/Int64Input.vala
src/Widgets/Fields/UInt64Input.vala
src/Widgets/Fields/DoubleInput.vala
src/Widgets/Fields/ArrayInput.vala
src/Services/Settings.vala
src/Services/EventManager.vala
PACKAGES
gtk+-3.0
gio-2.0
granite
OPTIONS
--thread
)
add_subdirectory (po)
add_executable(configurator ${VALA_C})
include(GSettings)
add_schema("com.github.cassidyjames.configurator.gschema.xml")
install (TARGETS configurator RUNTIME DESTINATION bin)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.cassidyjames.configurator.desktop DESTINATION share/applications)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/128/com.github.cassidyjames.configurator.svg DESTINATION share/icons/hicolor/128x128/apps)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/64/com.github.cassidyjames.configurator.svg DESTINATION share/icons/hicolor/64x64/apps)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/48/com.github.cassidyjames.configurator.svg DESTINATION share/icons/hicolor/48x48/apps)