From 37c756aa41f94f80197339ff672f0fe2237087a2 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Fri, 11 Sep 2015 18:26:29 +0200 Subject: [PATCH] ... --- CMakeLists.txt | 3 ++- cmake/CMakeLists.txt | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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$ -- 2.45.1