From c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Mon, 16 Apr 2012 09:44:09 +0200 Subject: ecmake -> cmake-e --- cmake-e/examples/hello/CMakeLists.txt | 20 ++++++++++++++++++++ cmake-e/examples/hello/main.c | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 cmake-e/examples/hello/CMakeLists.txt create mode 100644 cmake-e/examples/hello/main.c (limited to 'cmake-e/examples') diff --git a/cmake-e/examples/hello/CMakeLists.txt b/cmake-e/examples/hello/CMakeLists.txt new file mode 100644 index 0000000..caae503 --- /dev/null +++ b/cmake-e/examples/hello/CMakeLists.txt @@ -0,0 +1,20 @@ +LIST(APPEND HELLO_WORLD_CC_SOURCES + main.c + ) + +include_directories( + ${ELEMENTARY_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/lib + ) + +add_executable(hello_world ${HELLO_WORLD_CC_SOURCES}) + +get_target_property(ecmake_LIB_FILE ecmake LOCATION) +target_link_libraries(hello_world + ${ELEMENTARY_LIBRARIES} + ${ecmake_LIB_FILE} + ) + +add_dependencies(hello_world ecmake) + +add_test(Example_hello_world hello_world) diff --git a/cmake-e/examples/hello/main.c b/cmake-e/examples/hello/main.c new file mode 100644 index 0000000..7f4a907 --- /dev/null +++ b/cmake-e/examples/hello/main.c @@ -0,0 +1,10 @@ +#include +#include "ecmake.h" + +EAPI_MAIN int +elm_main(int argc, char **argv) +{ + return hello_world(); +} + +ELM_MAIN() -- cgit v1.2.3