summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:54:06 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 14:54:06 +0900
commitf49ccb71d7a62ec2d8743bfcf9fbe6c7f40b2aaf (patch)
tree4d172cef6094b9c58ad806d6099983259d7cd1d9 /CMakeLists.txt
parent51c6a1be576b2bf51544a96c6f43f7a73659b446 (diff)
downloadmenu-daemon-f49ccb71d7a62ec2d8743bfcf9fbe6c7f40b2aaf.tar.gz
menu-daemon-f49ccb71d7a62ec2d8743bfcf9fbe6c7f40b2aaf.tar.bz2
menu-daemon-f49ccb71d7a62ec2d8743bfcf9fbe6c7f40b2aaf.zip
apply FSL(Flora Software License)
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755
index 0000000..4e47275
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,55 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(menu-daemon C)
+
+SET(PREFIX "/usr")
+SET(EXEC_PREFIX "${PREFIX}/bin")
+SET(LIBDIR "${PREFIX}/lib")
+SET(CONFDIR "/etc")
+SET(VERSION 0.1.0)
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(pkgs REQUIRED
+ elementary
+ heynoti
+ elementary
+ aul
+ vconf
+ ecore
+ evas
+ ecore-evas
+ eet
+ x11
+ dlog
+ db-util
+ ecore-x
+ utilX
+ ecore-input
+ ecore-file
+ syspopup-caller
+ ail
+ eina
+)
+
+
+ADD_DEFINITIONS("-DLOG_TAG=\"${PROJECT_NAME}\"")
+
+FOREACH (flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+ADD_DEFINITIONS(${EXTRA_CFLAGS})
+ADD_EXECUTABLE(${PROJECT_NAME}
+ src/hw_key.c
+ src/parser.c
+ src/pkg_event.c
+ src/menu_daemon.c
+)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${EXEC_PREFIX})
+
+ADD_SUBDIRECTORY(data)
+
+
+
+# End of a file