summaryrefslogtreecommitdiff
path: root/ug-wifidirect/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ug-wifidirect/CMakeLists.txt')
-rw-r--r--ug-wifidirect/CMakeLists.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/ug-wifidirect/CMakeLists.txt b/ug-wifidirect/CMakeLists.txt
new file mode 100644
index 0000000..5f901e3
--- /dev/null
+++ b/ug-wifidirect/CMakeLists.txt
@@ -0,0 +1,41 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(ug-setting-wifidirect-efl C)
+
+SET(PREFIX "/opt/ug")
+SET(LIBDIR "${PREFIX}/lib")
+SET(RESDIR "${PREFIX}/res")
+SET(EDJDIR "${RESDIR}/edje/${PROJECT_NAME}")
+SET(IMGDIR "${RESDIR}/images/${PROJECT_NAME}")
+
+SET(SRCS
+ src/wfd_ug.c
+ src/wfd_ug_view.c
+ src/wfd_client.c
+)
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+
+SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -Wall")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+
+ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ADD_DEFINITIONS("-DRESDIR=\"${RESDIR}\"")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.1.0)
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
+
+ADD_CUSTOM_TARGET(wfd_ug.edj
+ COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/resources/images
+ ${CMAKE_CURRENT_SOURCE_DIR}/resources/wfd_ug.edc ${CMAKE_BINARY_DIR}/wfd_ug.edj
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/resources/wfd_ug.edc
+)
+ADD_DEPENDENCIES(${PROJECT_NAME} wfd_ug.edj)
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR})
+INSTALL(FILES ${CMAKE_BINARY_DIR}/wfd_ug.edj DESTINATION ${EDJDIR})
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/resources/images/ DESTINATION ${IMGDIR} FILES_MATCHING PATTERN "*.png")
+
+ADD_SUBDIRECTORY(po)