############################################# # # Step 1. Set Variable and Build Dependency # # set plguin name SET(PLUGIN_NAME "dc-vcalendar-task") # 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 # calendar calendar-service2 glib-2.0 icu-i18n dlog) ############################################# # # Step 2. Set Compile Environment # # set extra cflags from build dependency SET(PLUGIN_CFLAGS "${dc-vcalendar-task_CFLAGS}") ############################################# # # Step 3. Set Link Environment # # link a target to given libraries from pkg-config. SET(PLUGIN_LDFLAGS "${dc-vcalendar-task_LDFLAGS}") ############################################# # # Step 4. Install packages # include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)