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