blob: caae503f97958a1e073bfc0e086ae4e00a532d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
|