2 #############################################
4 # Step 1. Set Variable and Build Dependency
8 SET(PLUGIN_NAME "dc-plain-text")
10 # set a name for the entire project
11 PROJECT(plugin-${PLUGIN_NAME})
13 # checks for build dependency modules : a pkg-config module for CMake
14 INCLUDE(FindPkgConfig)
15 pkg_check_modules(${PLUGIN_NAME} REQUIRED
22 #############################################
24 # Step 2. Set Compile Environment
27 # set extra cflags from build dependency
28 SET(PLUGIN_CFLAGS "${dc-plain-text_CFLAGS}")
30 #############################################
32 # Step 3. Set Link Environment
35 # link a target to given libraries from pkg-config.
36 SET(PLUGIN_LDFLAGS "${dc-plain-text_LDFLAGS}")
38 #############################################
40 # Step 4. Install packages
43 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)