summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 34e242dfcf08824a5d5c7da813d3b52fb3367a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project("ephraim" C)
cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/erlang ${CMAKE_SOURCE_DIR}/cmake/vala)

include(ErlangTarget)
include(ValaPrecompile)
include(ValaVersion)

find_package(Erlang REQUIRED)
find_package(Vala REQUIRED)
ensure_vala_version("0.8" MINIMUM)

find_package(PkgConfig)
pkg_check_modules(GTK REQUIRED gtk+-2.0)
pkg_check_modules(GEE REQUIRED gee-1.0)
pkg_check_modules(GIO REQUIRED gio-2.0)
pkg_check_modules(GIO_UNIX REQUIRED gio-unix-2.0)
pkg_check_modules(EVA REQUIRED eva)

add_subdirectory(src)