diff options
Diffstat (limited to 'src/plugins/ds-public/plain-text/CMakeLists.txt')
-rwxr-xr-x | src/plugins/ds-public/plain-text/CMakeLists.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/plugins/ds-public/plain-text/CMakeLists.txt b/src/plugins/ds-public/plain-text/CMakeLists.txt new file mode 100755 index 0000000..e940e6b --- /dev/null +++ b/src/plugins/ds-public/plain-text/CMakeLists.txt @@ -0,0 +1,43 @@ + +############################################# +# +# Step 1. Set Variable and Build Dependency +# + +# set plguin name +SET(PLUGIN_NAME "dc-plain-text") + +# 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 + memo + glib-2.0 + sync-agent + dlog + libwbxml2) + +############################################# +# +# Step 2. Set Compile Environment +# + +# set extra cflags from build dependency +SET(PLUGIN_CFLAGS "${dc-plain-text_CFLAGS}") + +############################################# +# +# Step 3. Set Link Environment +# + +# link a target to given libraries from pkg-config. +SET(PLUGIN_LDFLAGS "${dc-plain-text_LDFLAGS}") + +############################################# +# +# Step 4. Install packages +# + +include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)
\ No newline at end of file |