2 #############################################
4 # Step 1. Set Variable and Build Dependency
8 SET(PLUGIN_NAME "mo-lawmo")
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
28 #############################################
30 # Step 2. Set Compile Environment
33 # set extra cflags from build dependency
34 SET(PLUGIN_CFLAGS "${mo-lawmo_CFLAGS}")
36 #############################################
38 # Step 3. Set Link Environment
41 # link a target to given libraries from pkg-config.
42 SET(PLUGIN_LDFLAGS "${mo-lawmo_LDFLAGS}")
44 #############################################
46 # Step 4. Install packages
49 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)