From a6a3c416c77d383f00a723ceb4545e89a2334923 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 26 Jun 2010 17:28:49 +0200 Subject: Put together cmake build --- test/CMakeLists.txt | 12 ++++++++++++ test/Test.vala | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/CMakeLists.txt create mode 100644 test/Test.vala (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..2c11d3b --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,12 @@ +vala_precompile(TEST_C + Test.vala +PACKAGES + gee-1.0 + erl_interface +CUSTOM_VAPIS + ${eva_BINARY_DIR}/src/eva.vapi +) + +include_directories(BEFORE ${eva_BINARY_DIR}/src) +add_executable(eva-test ${TEST_C}) +target_link_libraries(eva-test eva) diff --git a/test/Test.vala b/test/Test.vala new file mode 100644 index 0000000..ce5da6d --- /dev/null +++ b/test/Test.vala @@ -0,0 +1,9 @@ +namespace Eva { + class Test { + public static int main(string[] args) { + Eva.Long term = new Eva.Long(42); + + return 0; + } + } +} -- cgit v1.2.3