X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build%2Ftizen%2Fexamples%2FCMakeLists.txt;h=ed6508049d838ace88fc74cc86be7cf34173354e;hb=7c6e5f5fc21c97831378c0a83b6047f3daf8c2c4;hp=3a55570e616af660bc92c1b4c15027473833a3ff;hpb=e8a20bc4f6a3d21c0eec25e62f00b6f54e39ed08;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/build/tizen/examples/CMakeLists.txt b/build/tizen/examples/CMakeLists.txt index 3a55570..ed65080 100644 --- a/build/tizen/examples/CMakeLists.txt +++ b/build/tizen/examples/CMakeLists.txt @@ -13,6 +13,13 @@ MACRO(SUBDIRLIST result curdir) ENDMACRO() SUBDIRLIST(SUBDIRS ${EXAMPLES_SRC_DIR}) +SET(SCENE_LOADER_DIR "scene-loader") +IF (NOT "${ENABLE_SCENE_LOADER}" ) + IF ( ${SCENE_LOADER_DIR} IN_LIST SUBDIRS ) + LIST( REMOVE_ITEM SUBDIRS ${SCENE_LOADER_DIR} ) + ENDIF() +ENDIF() + FOREACH(EXAMPLE ${SUBDIRS}) FILE(GLOB SRCS "${EXAMPLES_SRC_DIR}/${EXAMPLE}/*.cpp") SET(SRCS ${SRCS} "${ROOT_SRC_DIR}/shared/resources-location.cpp") @@ -21,6 +28,6 @@ FOREACH(EXAMPLE ${SUBDIRS}) ELSE() ADD_EXECUTABLE(${EXAMPLE}.example ${SRCS}) ENDIF() - TARGET_LINK_LIBRARIES(${EXAMPLE}.example ${REQUIRED_PKGS_LDFLAGS} -pie) + TARGET_LINK_LIBRARIES(${EXAMPLE}.example ${REQUIRED_LIBS}) INSTALL(TARGETS ${EXAMPLE}.example DESTINATION ${BINDIR}) ENDFOREACH(EXAMPLE)