############################################# # # Step 1. Set Variable and Build Dependency # # set plguin name SET(PLUGIN_NAME "mo-devinfo") # 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 sync-agent vconf dlog libwbxml2 ) ############################################# # # Step 2. Set Compile Environment # # set extra cflags from build dependency SET(PLUGIN_CFLAGS "${mo-devinfo_CFLAGS}") ############################################# # # Step 3. Set Link Environment # # link a target to given libraries from pkg-config. SET(PLUGIN_LDFLAGS "${mo-devinfo_LDFLAGS}") ############################################# # # Step 4. Install packages # include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)