############################################# # # Step 1. Set Variable and Build Dependency # # set plguin name SET(PLUGIN_NAME "da-call-log") # set a name for the entire project PROJECT(plugin-${PLUGIN_NAME}) # checks for build dependency modules : a pkg-config module for CMake INCLUDE(FindPkgConfig) pkg_check_modules(${PLUGIN_NAME} REQUIRED contacts-service2 dlog libtzplatform-config) ############################################# # # Step 2. Set Compile Environment # # set extra cflags from build dependency SET(PLUGIN_CFLAGS "${da-call-log_CFLAGS}") ############################################# # # Step 3. Set Link Environment # # link a target to given libraries from pkg-config. SET(PLUGIN_LDFLAGS "${da-call-log_LDFLAGS}") ############################################# # # Step 4. Install packages # include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)