Merge "Reduced complexity of dali-table-view" into devel/master
[platform/core/uifw/dali-demo.git] / build / tizen / demo / CMakeLists.txt
index aae6103..855b82c 100644 (file)
@@ -6,10 +6,33 @@ SET(DEMO_SRCS
   ${DEMO_SRCS}
   "${ROOT_SRC_DIR}/shared/resources-location.cpp"
   "${ROOT_SRC_DIR}/shared/dali-table-view.cpp"
+  "${ROOT_SRC_DIR}/shared/bubble-animator.cpp"
 )
 
-ADD_EXECUTABLE(${PROJECT_NAME} ${DEMO_SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${REQUIRED_PKGS_LDFLAGS} -pie)
+IF(WIN32)
+  SET(DEMO_SRCS
+    ${DEMO_SRCS}
+    "${ROOT_SRC_DIR}/shared/execute-process-win.cpp"
+  )
+ELSEIF(ANDROID)
+  SET(DEMO_SRCS
+    ${DEMO_SRCS}
+    "${ROOT_SRC_DIR}/shared/execute-process-android.cpp"
+  )
+ELSE()
+  SET(DEMO_SRCS
+    ${DEMO_SRCS}
+    "${ROOT_SRC_DIR}/shared/execute-process-unix.cpp"
+  )
+ENDIF()
+
+IF(SHARED)
+  ADD_LIBRARY(${PROJECT_NAME} SHARED ${DEMO_SRCS})
+ELSE()
+  ADD_EXECUTABLE(${PROJECT_NAME} ${DEMO_SRCS})
+ENDIF()
+
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${REQUIRED_LIBS})
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})