CMakeLists.txt 2.01 KB
Newer Older
Sergio Costas's avatar
Sergio Costas committed
1 2 3 4 5 6 7 8 9 10
### CMakeLists automatically created with AutoVala
### Do not edit

project (terminus)
cmake_minimum_required (VERSION 2.6)
cmake_policy (VERSION 2.8)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
enable_testing ()
option(ICON_UPDATE "Update the icon cache after installing" ON)
option(BUILD_VALADOC "Build API documentation if Valadoc is available" OFF)
11
option(GTK_3_20 "GTK_3_20" OFF)
Sergio Costas's avatar
Sergio Costas committed
12

13 14 15 16
if( NOT CMAKE_BUILD_TYPE )
	set(CMAKE_BUILD_TYPE Release)
endif()

Sergio Costas's avatar
Sergio Costas committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
include(GNUInstallDirs)
if( ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/usr/local" ) )
	# A workaround to ensure that works 'out of the box' in Debian-based systems
	set(CMAKE_INSTALL_LIBDIR lib)
endif()

set(HAVE_VALADOC OFF)
if(BUILD_VALADOC)
	find_package(Valadoc)
	if(VALADOC_FOUND)
		set(HAVE_VALADOC ON)
		include(Valadoc)
	else()
		message("Valadoc not found, will not build documentation")
	endif()
endif()

find_package(PkgConfig)

Sergio Costas's avatar
Sergio Costas committed
36 37 38 39
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} atk)
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} cairo)
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gdk-3.0)
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gdk-pixbuf-2.0)
40
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gee-0.8)
Sergio Costas's avatar
Sergio Costas committed
41
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gio-2.0)
Sergio Costas's avatar
Sergio Costas committed
42
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} glib-2.0)
Sergio Costas's avatar
Sergio Costas committed
43 44
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gobject-2.0)
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gtk+-3.0)
45
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} keybinder-3.0)
Sergio Costas's avatar
Sergio Costas committed
46
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} pango)
47
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} pangocairo)
Sergio Costas's avatar
Sergio Costas committed
48 49
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} vte-2.91)
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} x11)
Sergio Costas's avatar
Sergio Costas committed
50 51 52

pkg_check_modules(DEPS REQUIRED ${MODULES_TO_CHECK})

53

54 55 56 57 58
find_program ( WHERE_GRESOURCE glib-compile-resources )
if ( NOT WHERE_GRESOURCE )
	MESSAGE(FATAL_ERROR "Error! GLIB-COMPILE-RESOURCES is not installed.")
endif()

Sergio Costas's avatar
Sergio Costas committed
59
add_subdirectory(po)
60
add_subdirectory(data/local)
61
add_subdirectory(terminus_gnome_shell)
62
add_subdirectory(data)
63
add_subdirectory(src/vapidir)
Sergio Costas's avatar
Sergio Costas committed
64
add_subdirectory(data/icons)
65
add_subdirectory(data/interface)
Sergio Costas's avatar
Sergio Costas committed
66 67
add_subdirectory(src)