2014-10-15 17:32:46 +04:00
|
|
|
INCLUDE (FindVala)
|
|
|
|
INCLUDE (UseVala)
|
2015-10-19 12:11:35 +03:00
|
|
|
INCLUDE (CFlagsCommonRules)
|
2014-10-15 17:32:46 +04:00
|
|
|
FIND_PACKAGE (PkgConfig REQUIRED)
|
|
|
|
|
|
|
|
VALA_PRECOMPILE (VALA_C ${PluginSources}
|
|
|
|
PACKAGES ${PluginPackages}
|
|
|
|
OPTIONS --thread ${VALA_DEBUG}
|
|
|
|
CUSTOM_VAPIS ${PluginCustomVapis}
|
|
|
|
GENERATE_VAPI
|
|
|
|
GENERATE_HEADER
|
|
|
|
)
|
2014-10-26 16:30:09 +03:00
|
|
|
PKG_CHECK_MODULES (PKGS REQUIRED ${PluginPkgModules})
|
2015-10-19 18:27:24 +03:00
|
|
|
INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/po)
|
2014-10-15 17:32:46 +04:00
|
|
|
ADD_LIBRARY (${PluginName} SHARED ${VALA_C} ${PluginExtraSources})
|
2014-10-26 16:18:42 +03:00
|
|
|
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
2014-10-15 17:32:46 +04:00
|
|
|
TARGET_LINK_LIBRARIES (${PluginName} ${PKGS_LIBRARIES} ${PluginLinkLibs})
|