summaryrefslogtreecommitdiff
path: root/popup-wifidirect/CMakeLists.txt
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:20 (GMT)
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:20 (GMT)
commitd78b6a702fb987794bfb8e272e58e423ae584300 (patch)
tree499ded173b92d92d374878c04d9c4b0c789c6d9c /popup-wifidirect/CMakeLists.txt
parentfd9be1d338e467f59738b0e7b5a728928023973e (diff)
downloadug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.zip
ug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.tar.gz
ug-wifi-direct-d78b6a702fb987794bfb8e272e58e423ae584300.tar.bz2
apply FSL(Flora Software License)
Diffstat (limited to 'popup-wifidirect/CMakeLists.txt')
-rw-r--r--popup-wifidirect/CMakeLists.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/popup-wifidirect/CMakeLists.txt b/popup-wifidirect/CMakeLists.txt
new file mode 100644
index 0000000..b2fbb9e
--- /dev/null
+++ b/popup-wifidirect/CMakeLists.txt
@@ -0,0 +1,41 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(wifi-direct-popup C)
+SET(PACKAGE_NAME org.tizen.wifi-direct-popup)
+
+SET(PREFIX /opt/apps/${PACKAGE_NAME})
+SET(BINDIR "${PREFIX}/bin")
+SET(RESDIR "${PREFIX}/res")
+SET(LOCALEDIR "${RESDIR}/locale")
+SET(EDJDIR "${RESDIR}/edje")
+
+SET(SRCS
+ src/wfd-app-main.c
+ src/wfd-app-client.c
+ src/wfd-app-util.c
+ src/wfd-app-popup-view.c
+)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+
+SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -DVITA_FEATURE")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+
+IF("${ARCH}" STREQUAL "arm")
+ ADD_DEFINITIONS("-DTARGET")
+ MESSAGE("add -DTARGET")
+ENDIF("${ARCH}" STREQUAL "arm")
+
+ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
+
+ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
+
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${PACKAGE_NAME}.desktop.in ${CMAKE_BINARY_DIR}/${PACKAGE_NAME}.desktop)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/${PACKAGE_NAME}.desktop DESTINATION /opt/share/applications)
+
+ADD_SUBDIRECTORY(po)