From: Leonardo Florez-Valencia Date: Fri, 11 Sep 2015 16:26:29 +0000 (+0200) Subject: ... X-Git-Tag: v0.1~384 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=37c756aa41f94f80197339ff672f0fe2237087a2;p=cpPlugins.git ... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 93dd1ef..16233dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) SET( policies + CMP0015 CMP0020 CMP0042 ) @@ -82,7 +83,7 @@ ENDIF(USE_QT4) ## ================================================ IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR}) - MESSAGE(FATAL_ERROR "Building in the source tree is not allowed") + MESSAGE(FATAL_ERROR "Building in the source tree is not allowed.") ENDIF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR}) ## ===================================== diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index cbe3858..7db97e9 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -4,4 +4,14 @@ CONFIGURE_FILE( @ONLY ) +## ======================== +## -- Installation rules -- +## ======================== + +INSTALL( + FILES + ${PROJECT_BINARY_DIR}/cpPluginsConfig.cmake + DESTINATION share/cmake + ) + ## eof - $RCSfile$