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)