summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
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)