~donadigo/power-installer/power-installer-legacy

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
project (power-installer)

cmake_minimum_required (VERSION 2.6)
cmake_policy (VERSION 2.6)

list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
set (PKGDATADIR "${DATADIR}/power-installer")
set (RELEASE_NAME "Power Installer")
set (GETTEXT_PACKAGE "power-installer")
set (VERSION "0.3")
set (VERSION_INFO "Release")
set (PREFIX "${CMAKE_INSTALL_PREFIX}")
set (DOLLAR "$")

FILE (GLOB_RECURSE sources src/*.vala)

configure_file (${CMAKE_SOURCE_DIR}/src/config.vala.cmake ${CMAKE_SOURCE_DIR}/src/config.vala)

find_package (PkgConfig)

pkg_check_modules (DEPS REQUIRED gthread-2.0 gtk+-3.0 granite)

add_definitions (${DEPS_CFLAGS})
link_libraries (${DEPS_LIBRARIES})
link_directories (${DEPS_LIBRARY_DIRS})

find_package (Vala REQUIRED)
include (ValaVersion)

add_definitions (${DEPS_CFLAGS})
link_libraries (${DEPS_LIBRARIES})
link_directories (${DEPS_LIBRARY_DIRS})

add_subdirectory (po)

add_subdirectory (src)
add_subdirectory (data)
add_subdirectory (scripts)