From bcf06bedc568533eabcbb22d284090433a9766f5 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 29 Sep 2015 19:27:22 +0300 Subject: [PATCH] ValaBinCommonRules fixed: BinInstall added. --- ValaBinCommonRules.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ValaBinCommonRules.cmake b/ValaBinCommonRules.cmake index b76a752..b03137a 100644 --- a/ValaBinCommonRules.cmake +++ b/ValaBinCommonRules.cmake @@ -17,3 +17,7 @@ INCLUDE_DIRECTORIES (${PKGS_INCLUDE_DIRS}) ADD_EXECUTABLE (${BinName} ${VALA_C} ${BinExtraSources}) ADD_DEFINITIONS (-DGETTEXT_PACKAGE="${PROJECT_LOWERCASE_NAME}-${MAJOR}") TARGET_LINK_LIBRARIES (${BinName} ${PKGS_LIBRARIES} ${BinLinkLibs}) + +IF (BinInstall) + INSTALL (TARGETS ${BinName} DESTINATION bin) +ENDIF (BinInstall)