CMake for MS Windows command line
[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 )
10
11 IF(WIN32)
12   SET(EXAMPLES_REEL_SRCS
13     ${EXAMPLES_REEL_SRCS}
14     "${ROOT_SRC_DIR}/shared/execute-process-win.cpp"
15   )
16 ELSEIF(ANDROID)
17   SET(EXAMPLES_REEL_SRCS
18     ${EXAMPLES_REEL_SRCS}
19     "${ROOT_SRC_DIR}/shared/execute-process-android.cpp"
20   )
21 ELSE()
22   SET(EXAMPLES_REEL_SRCS
23     ${EXAMPLES_REEL_SRCS}
24     "${ROOT_SRC_DIR}/shared/execute-process-unix.cpp"
25   )
26 ENDIF()
27
28 IF(SHARED)
29   ADD_LIBRARY(dali-examples SHARED ${EXAMPLES_REEL_SRCS})
30 ELSE()
31   ADD_EXECUTABLE(dali-examples ${EXAMPLES_REEL_SRCS})
32 ENDIF()
33
34 TARGET_LINK_LIBRARIES(dali-examples ${REQUIRED_LIBS})
35
36 INSTALL(TARGETS dali-examples DESTINATION ${BINDIR})
37