diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:40:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:40:15 +0200 |
commit | 6f682d7d94a30433531137476cd4aaa4dd200f3b (patch) | |
tree | 673f943db1f1df0e583509858f2c62c78708f9a7 /ecmake/examples | |
parent | 2224f05d43a0d782b626d09f397767597b3d7f4f (diff) | |
parent | 23929ded8ba244359e871e1d02ee1d05d060ea71 (diff) | |
download | skeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.zip skeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.tar.gz |
Merge branch 'master' of asynk.ch:templates
Diffstat (limited to 'ecmake/examples')
-rw-r--r-- | ecmake/examples/hello/CMakeLists.txt | 20 | ||||
-rw-r--r-- | ecmake/examples/hello/main.c | 10 |
2 files changed, 30 insertions, 0 deletions
diff --git a/ecmake/examples/hello/CMakeLists.txt b/ecmake/examples/hello/CMakeLists.txt new file mode 100644 index 0000000..caae503 --- /dev/null +++ b/ecmake/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/ecmake/examples/hello/main.c b/ecmake/examples/hello/main.c new file mode 100644 index 0000000..7f4a907 --- /dev/null +++ b/ecmake/examples/hello/main.c @@ -0,0 +1,10 @@ +#include <Elementary.h> +#include "ecmake.h" + +EAPI_MAIN int +elm_main(int argc, char **argv) +{ + return hello_world(); +} + +ELM_MAIN() |