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 22:49:48 +01:00
|
|
|
project (com.github.artemanufrij.webpin)
|
2017-07-31 19:58:37 +01:00
|
|
|
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)
|
2017-07-31 22:49:48 +01:00
|
|
|
pkg_check_modules(DEPS REQUIRED
|
|
|
|
gtk+-3.0>=3.12
|
|
|
|
granite
|
|
|
|
webkit2gtk-4.0
|
2017-07-31 19:58:37 +01:00
|
|
|
)
|
2017-07-31 19:27:03 +01:00
|
|
|
|
2017-07-31 22:49:48 +01:00
|
|
|
add_definitions (-w)
|
|
|
|
|
2017-07-31 19:27:03 +01:00
|
|
|
|
|
|
|
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)
|
2017-08-01 19:33:37 +01:00
|
|
|
# Translation files
|
|
|
|
set (GETTEXT_PACKAGE "${CMAKE_PROJECT_NAME}")
|
|
|
|
add_definitions (-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
|
2017-07-31 22:49:48 +01:00
|
|
|
add_subdirectory (po)
|
2017-07-31 19:58:37 +01:00
|
|
|
add_subdirectory (data)
|
2017-07-31 19:27:03 +01:00
|
|
|
add_subdirectory (schemas)
|
2017-08-01 19:33:37 +01:00
|
|
|
|