summaryrefslogtreecommitdiff
path: root/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'common/CMakeLists.txt')
-rwxr-xr-xcommon/CMakeLists.txt36
1 files changed, 29 insertions, 7 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index fca8475..f51ffea 100755
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -8,33 +8,55 @@ SET(SRCS
src/ivug-mouse-event.c
src/debug.c
src/statistics.c
+ src/ivug-uuid.c
+ src/ivug-util.c
+ src/ivug-drm.c
+ src/ivug-file-info.c
+ src/ivug-callback.c
+ src/ivug-config.c
+ src/ivug-message.c
+ src/ivug-exif.c
+ src/ivug-db.c
)
INCLUDE_DIRECTORIES(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_SOURCE_DIR}/include
+ include
+ src
)
+MESSAGE("Checking " ${PROJECT_NAME} )
+
INCLUDE(FindPkgConfig)
-pkg_check_modules(commonpkgs REQUIRED
+pkg_check_modules(${PROJECT_NAME}_pkgs REQUIRED
elementary
evas
- ui-gadget
+ ecore-evas
+ ecore-file
+ efreet-mime
dlog
+ drm-client
+ libexif
+ vconf
+ capi-system-power
+ capi-media-metadata-extractor
+ capi-content-mime-type
+ capi-content-media-content
)
-FOREACH(flag ${commonpkgs_CFLAGS})
+FOREACH(flag ${${PROJECT_NAME}_pkgs_CFLAGS})
SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
ENDFOREACH(flag)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall")
-SET(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS})
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS}")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION} )
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${commonpkgs_LDFLAGS} -lm )
+
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${${PROJECT_NAME}_pkgs_LDFLAGS})
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)