CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(PKGNAME "org.tizen.message") SET(CMAKE_SOURCE_COMMON_DIR "${CMAKE_SOURCE_DIR}/common") SET(CMAKE_SOURCE_MAIN_DIR "${CMAKE_SOURCE_DIR}/main") SET(CMAKE_SOURCE_THREAD_DIR "${CMAKE_SOURCE_DIR}/thread") SET(CMAKE_SOURCE_BUBBLE_DIR "${CMAKE_SOURCE_DIR}/bubble") SET(CMAKE_SOURCE_COMPOSER_DIR "${CMAKE_SOURCE_DIR}/composer") SET(CMAKE_SOURCE_SETTING_DIR "${CMAKE_SOURCE_DIR}/setting") SET(CMAKE_SOURCE_VIEWER_DIR "${CMAKE_SOURCE_DIR}/viewer") SET(CMAKE_SOURCE_CLASS0_DIR "${CMAKE_SOURCE_DIR}/class0") SET(CMAKE_SOURCE_DIALOG_DIR "${CMAKE_SOURCE_DIR}/dialog") SET(PREFIX ${CMAKE_INSTALL_PREFIX}) SET(BINDIR "${PREFIX}/bin") SET(RESDIR "${PREFIX}/res") SET(DATADIR "${PREFIX}/data") SET(LOCALEDIR "${RESDIR}/locale") SET(ICONDIR "${RESDIR}/icons/default/small") SET(IMGDIR "${RESDIR}/images") SET(EDJDIR "${RESDIR}/edje") SET(UGDIR "/opt/ug/lib") SET(LIBDIR "${PREFIX}/lib") ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"") ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"") ADD_DEFINITIONS("-DDATADIR=\"${DATADIR}\"") ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"") ADD_DEFINITIONS("-DICONDIR=\"${ICONDIR}\"") ADD_DEFINITIONS("-DIMGDIR=\"${IMGDIR}\"") ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"") SET(CMAKE_LDFLAGS "-Wl,-zdefs" ) #Add your submodule directory name ADD_SUBDIRECTORY(common) ADD_SUBDIRECTORY(main) ADD_SUBDIRECTORY(composer) ADD_SUBDIRECTORY(setting) ADD_SUBDIRECTORY(viewer) ADD_SUBDIRECTORY(class0) ADD_SUBDIRECTORY(dialog)