summaryrefslogtreecommitdiff
path: root/client/CMakeLists.txt
diff options
context:
space:
mode:
authorHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:11:35 +0900
committerHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:11:35 +0900
commitb32dea69029f492083f2b11f3a087300ddb2b9e0 (patch)
treecc97cc634e3234446670bc6c7d455bd1be5dd806 /client/CMakeLists.txt
parentc3875cbe2f8e945b837a76ac5f8e6d57bde940bb (diff)
downloadui-gadget-1-accepted/tizen_2.0/20130215.203947.tar.gz
ui-gadget-1-accepted/tizen_2.0/20130215.203947.tar.bz2
ui-gadget-1-accepted/tizen_2.0/20130215.203947.zip
Diffstat (limited to 'client/CMakeLists.txt')
-rwxr-xr-xclient/CMakeLists.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
new file mode 100755
index 0000000..cd31296
--- /dev/null
+++ b/client/CMakeLists.txt
@@ -0,0 +1,46 @@
+SET(CLIENT ug-client)
+SET(CLIENT_SRCS ug-client.c)
+SET(CLIENT_VENDOR samsung)
+SET(CLIENT_DIR /usr/bin)
+SET(CLIENT_LOCALEDIR /usr/share/locale)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+
+INCLUDE(FindPkgConfig)
+PKG_CHECK_MODULES(CLIENT_PKGS REQUIRED
+ capi-appfw-application
+ capi-system-runtime-info
+ appcore-efl
+ appsvc
+ bundle
+ ecore-x
+ edje
+ dlog
+ elementary
+ evas
+ x11)
+
+FOREACH(flag ${CLIENT_PKGS_CFLAGS})
+ SET(CLIENT_CFLAGS "${CLIENT_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DVENDOR=\"${CLIENT_VENDOR}\"")
+SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DAPP_NAME=\"${CLIENT}\"")
+SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DAPP_DIR=\"${CLIENT_DIR}\"")
+SET(CLIENT_CFLAGS, "${CLIENT_CFLAGS} -DAPP_LOCALEDIR=\"${CLIENT_LOCALEDIR}\"")
+
+ADD_EXECUTABLE(${CLIENT} ${CLIENT_SRCS})
+SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES COMPILE_FLAGS "${CLIENT_CFLAGS}")
+TARGET_LINK_LIBRARIES(${CLIENT} ${PROJECT_NAME} ${CLIENT_PKGS_LDFLAGS})
+
+ADD_CUSTOM_TARGET(ug-client.edj
+ COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/ug-client.edc ${CMAKE_CURRENT_BINARY_DIR}/ug-client.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ug-client.edc
+)
+ADD_DEPENDENCIES(${CLIENT} ug-client.edj)
+
+INSTALL(TARGETS ${CLIENT} DESTINATION bin)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ug-client.edj DESTINATION share/edje/ug-client)
+