forked from p-e-w/plotinus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (32 loc) · 865 Bytes
/
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
project(plotinus C)
cmake_minimum_required(VERSION 2.8)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(LIB_NAME ${CMAKE_PROJECT_NAME})
find_package(PkgConfig)
pkg_check_modules(DEPS REQUIRED
gtk+-3.0
)
add_definitions(${DEPS_CFLAGS})
link_libraries(${DEPS_LIBRARIES} m)
link_directories(${DEPS_LIBRARY_DIRS})
find_package(Vala REQUIRED)
include(ValaVersion)
ensure_vala_version("0.26" MINIMUM)
include(ValaPrecompile)
vala_precompile(VALA_C ${LIB_NAME}
src/Command.vala
src/CommandExtractor.vala
src/CommandList.vala
src/InstanceSettings.vala
src/Keybinder.vala
src/Module.vala
src/PopupWindow.vala
src/Utilities.vala
PACKAGES
gtk+-3.0>=3.16
posix
)
include(GSettings)
add_schema(data/com.worldwidemann.plotinus.gschema.xml)
add_library(${LIB_NAME} SHARED ${VALA_C})
install(TARGETS ${LIB_NAME} LIBRARY DESTINATION lib)