Plugin: installation flag added.

This commit is contained in:
Kolan Sh 2015-10-23 18:07:18 +03:00
parent df96ceb0b0
commit 972b5e5d88
1 changed files with 4 additions and 0 deletions

View File

@ -15,3 +15,7 @@ INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/po)
ADD_LIBRARY (${PluginName} SHARED ${VALA_C} ${PluginExtraSources})
ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}")
TARGET_LINK_LIBRARIES (${PluginName} ${PKGS_LIBRARIES} ${PluginLinkLibs})
IF (PluginInstall)
INSTALL (TARGETS ${PluginName} DESTINATION lib/${PROJECT_LOWERCASE_NAME}-${MAJOR}/plugins/${PluginName})
ENDIF (PluginInstall)