[dali_2.3.49] Merge branch 'devel/master'
[platform/core/uifw/dali-demo.git] / build / tizen / demo / CMakeLists.txt
1 SET(DEMO_SRC_DIR ${ROOT_SRC_DIR}/demo)
2
3 AUX_SOURCE_DIRECTORY(${DEMO_SRC_DIR} DEMO_SRCS)
4
5 SET(DEMO_SRCS
6   ${DEMO_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(DEMO_SRCS
14     ${DEMO_SRCS}
15     "${ROOT_SRC_DIR}/shared/execute-process-win.cpp"
16   )
17 ELSEIF(ANDROID)
18   SET(DEMO_SRCS
19     ${DEMO_SRCS}
20     "${ROOT_SRC_DIR}/shared/execute-process-android.cpp"
21   )
22 ELSEIF(TIZEN)
23   SET(DEMO_SRCS
24     ${DEMO_SRCS}
25     "${ROOT_SRC_DIR}/shared/execute-process-tizen.cpp"
26   )
27 ELSE()
28   SET(DEMO_SRCS
29     ${DEMO_SRCS}
30     "${ROOT_SRC_DIR}/shared/execute-process-unix.cpp"
31   )
32 ENDIF()
33
34 IF(SHARED)
35   ADD_LIBRARY(${PROJECT_NAME} SHARED ${DEMO_SRCS})
36 ELSE()
37   ADD_EXECUTABLE(${PROJECT_NAME} ${DEMO_SRCS})
38 ENDIF()
39
40 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${REQUIRED_LIBS})
41
42 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
43