1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
6 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
7 SET(PKGNAME "lib${PROJECT_NAME}")
8 SET(LIBDIR "${PREFIX}/lib")
9 SET(BINDIR "${PREFIX}/bin")
10 SET(RESDIR "${PREFIX}/res")
11 SET(LOCALEDIR "${RESDIR}/locale")
13 SET(CMAKE_C_FLAGS_RELEASE "-g -O2")
14 SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb")
15 SET(CMAKE_C_CFLAS_CCOV "-g -O2 --coverage")
17 # Set compiler warning flags
18 ADD_DEFINITIONS("-Werror")
19 ADD_DEFINITIONS("-Wall")
20 ADD_DEFINITIONS("-Wextra")
22 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
23 ADD_DEFINITIONS("-DPKGNAME=\"${PKGNAME}\"")
24 ADD_DEFINITIONS("-DPACKAGE_NAME=\"${PKGNAME}\"")
25 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
26 ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
27 ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
29 IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
30 ADD_DEFINITIONS("-DTIZEN_DEBUG_ENABLE")
31 ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
32 ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
34 #SET(TARGET_IM_UIGADGET "ug-im-ui")
35 SET(TARGET_IM_UIGADGET "im-ui")
37 #${CMAKE_SOURCE_DIR}/packaging/im-ui.spec
39 ${CMAKE_SOURCE_DIR}/packaging/im-ui.manifest
44 # desktop icon (copied from calculator app)
45 set(PREFIX ${CMAKE_INSTALL_PREFIX})
46 install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.im-ui.xml DESTINATION /usr/share/packages)
47 install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.im-ui.png DESTINATION /usr/share/icons/default/small)