8b392e7190c7ca4775ed4ad51133eefbe2579a86
[platform/core/uifw/dali-demo.git] / build / tizen / examples-reel / CMakeLists.txt
1 SET(EXAMPLES_REEL_SRC_DIR ${ROOT_SRC_DIR}/examples-reel)
2
3 AUX_SOURCE_DIRECTORY(${EXAMPLES_REEL_SRC_DIR} EXAMPLES_REEL_SRCS)
4
5 SET(EXAMPLES_REEL_SRCS
6   ${EXAMPLES_REEL_SRCS}
7   "${ROOT_SRC_DIR}/shared/resources-location.cpp"
8   "${ROOT_SRC_DIR}/shared/dali-table-view.cpp"
9   "${ROOT_SRC_DIR}/shared/bubble-animator.cpp"
10 )
11
12 IF(WIN32)
13   SET(EXAMPLES_REEL_SRCS
14     ${EXAMPLES_REEL_SRCS}
15     "${ROOT_SRC_DIR}/shared/execute-process-win.cpp"
16   )
17 ELSEIF(ANDROID)
18   SET(EXAMPLES_REEL_SRCS
19     ${EXAMPLES_REEL_SRCS}
20     "${ROOT_SRC_DIR}/shared/execute-process-android.cpp"
21   )
22 ELSE()
23   SET(EXAMPLES_REEL_SRCS
24     ${EXAMPLES_REEL_SRCS}
25     "${ROOT_SRC_DIR}/shared/execute-process-unix.cpp"
26   )
27 ENDIF()
28
29 IF(SHARED)
30   ADD_LIBRARY(dali-examples SHARED ${EXAMPLES_REEL_SRCS})
31 ELSE()
32   ADD_EXECUTABLE(dali-examples ${EXAMPLES_REEL_SRCS})
33 ENDIF()
34
35 TARGET_LINK_LIBRARIES(dali-examples ${REQUIRED_LIBS})
36
37 INSTALL(TARGETS dali-examples DESTINATION ${BINDIR})
38