summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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