From bdaae5b6704e29919ec7f284b9e3abe54f96f2f8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 17 Jun 2010 13:07:17 +0200 Subject: Added CMake build system --- CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..49f4f09 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +project("ephraim" C) +cmake_minimum_required(VERSION 2.6) +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(ERL REQUIRED erl_interface) + +add_subdirectory(src) -- cgit v1.2.3