1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
4 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/${SETTING_COMMON}/include)
7 pkg_check_modules(pkgs_about REQUIRED elementary appcore-common appcore-efl iniparser ui-gadget bundle evas ecore tapi elm-webview ewebkit bluetooth-api)
9 FOREACH(flag ${pkgs_about_CFLAGS})
10 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
13 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
14 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
16 IF("${ARCH}" STREQUAL "arm")
17 ADD_DEFINITIONS("-DTARGET")
18 MESSAGE("add -DTARGET")
19 ENDIF("${ARCH}" STREQUAL "arm")
21 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
22 ADD_DEFINITIONS("-DSLP_DEBUG")
24 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
26 ADD_LIBRARY(${SETTING_ABOUT_UG} SHARED
28 src/setting-about-main.c
29 src/setting-about-licences.c
32 TARGET_LINK_LIBRARIES(${SETTING_ABOUT_UG} -L${CMAKE_BINARY_DIR}/${SETTING_COMMON}/ -lsetting-common)
33 TARGET_LINK_LIBRARIES(${SETTING_ABOUT_UG} ${pkgs_about_LDFLAGS})
35 INSTALL(TARGETS ${SETTING_ABOUT_UG} DESTINATION /opt/ug/lib)