X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build%2Ftizen%2Fdemo%2FCMakeLists.txt;h=855b82c4a34b7f754d3a60838e85edd1bef278fe;hb=e22394f525ccad9b97ab0fcb7869ce62ab66dc34;hp=affd6209834a9bb3024a98f2a8b1593170bf2dcd;hpb=c83f64b6a2d71d988d4a3299507d2d1277166d8c;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/build/tizen/demo/CMakeLists.txt b/build/tizen/demo/CMakeLists.txt index affd620..855b82c 100644 --- a/build/tizen/demo/CMakeLists.txt +++ b/build/tizen/demo/CMakeLists.txt @@ -2,8 +2,37 @@ SET(DEMO_SRC_DIR ${ROOT_SRC_DIR}/demo) AUX_SOURCE_DIRECTORY(${DEMO_SRC_DIR} DEMO_SRCS) -ADD_EXECUTABLE(${PROJECT_NAME} ${DEMO_SRCS}) -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${REQUIRED_PKGS_LDFLAGS} -pie) +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" +) + +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})