webpin/CMakeLists.txt

43 lines
957 B
Text
Raw Normal View History

2017-07-31 19:27:03 +01:00
cmake_minimum_required (VERSION 2.8)
2017-07-31 19:58:37 +01:00
cmake_policy (VERSION 2.8)
2017-07-31 19:27:03 +01:00
2017-07-31 19:58:37 +01:00
project(com.github.artemanufrij.webpin)
include (GNUInstallDirs)
set (DATADIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}")
set (PKGDATADIR "${DATADIR}/${CMAKE_PROJECT_NAME}")
set (GETTEXT_PACKAGE ${CMAKE_PROJECT_NAME})
add_definitions ("-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\"")
2017-07-31 19:27:03 +01:00
2017-07-31 19:58:37 +01:00
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
2017-07-31 19:27:03 +01:00
2017-07-31 19:58:37 +01:00
find_package(PkgConfig)
pkg_check_modules(DEPS REQUIRED
gobject-2.0
glib-2.0
gio-2.0
gtk+-3.0>=3.12
gthread-2.0
granite
gee-0.8
webkit2gtk-3.0
libsoup-2.4
gdk-pixbuf-2.0
)
2017-07-31 19:27:03 +01:00
#
add_subdirectory(vapi)
add_subdirectory(po)
add_definitions(${DEPS_CFLAGS})
link_libraries(${DEPS_LIBRARIES})
link_directories(${DEPS_LIBRARY_DIRS})
2017-07-31 19:58:37 +01:00
include(ValaPrecompile)
2017-07-31 19:27:03 +01:00
find_package(Vala REQUIRED)
include(ValaVersion)
ensure_vala_version("0.26.0" MINIMUM)
2017-07-31 19:58:37 +01:00
add_subdirectory (src)
add_subdirectory (data)
2017-07-31 19:27:03 +01:00
add_subdirectory (schemas)