From 1191c3c2b8ba954f7e47e344f379a1af544ff5b1 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Fri, 27 May 2011 13:31:33 +0200
Subject: [PATCH] ENH: put all CMake related files into CMake dir

---
 OTBConfig.cmake.in => CMake/OTBConfig.cmake.in            | 0
 UseOTB.cmake.in => CMake/UseOTB.cmake.in                  | 0
 otbConfigure.h.in => CMake/otbConfigure.h.in              | 0
 .../otbGenerateOTBConfig.cmake                            | 4 ++--
 .../otbIncludeDirectories.cmake                           | 0
 CMakeLists.txt                                            | 8 ++++----
 6 files changed, 6 insertions(+), 6 deletions(-)
 rename OTBConfig.cmake.in => CMake/OTBConfig.cmake.in (100%)
 rename UseOTB.cmake.in => CMake/UseOTB.cmake.in (100%)
 rename otbConfigure.h.in => CMake/otbConfigure.h.in (100%)
 rename otbGenerateOTBConfig.cmake => CMake/otbGenerateOTBConfig.cmake (96%)
 rename otbIncludeDirectories.cmake => CMake/otbIncludeDirectories.cmake (100%)

diff --git a/OTBConfig.cmake.in b/CMake/OTBConfig.cmake.in
similarity index 100%
rename from OTBConfig.cmake.in
rename to CMake/OTBConfig.cmake.in
diff --git a/UseOTB.cmake.in b/CMake/UseOTB.cmake.in
similarity index 100%
rename from UseOTB.cmake.in
rename to CMake/UseOTB.cmake.in
diff --git a/otbConfigure.h.in b/CMake/otbConfigure.h.in
similarity index 100%
rename from otbConfigure.h.in
rename to CMake/otbConfigure.h.in
diff --git a/otbGenerateOTBConfig.cmake b/CMake/otbGenerateOTBConfig.cmake
similarity index 96%
rename from otbGenerateOTBConfig.cmake
rename to CMake/otbGenerateOTBConfig.cmake
index ec099abc5e..f98b3ca83e 100644
--- a/otbGenerateOTBConfig.cmake
+++ b/CMake/otbGenerateOTBConfig.cmake
@@ -37,7 +37,7 @@ SET(OTB_INCLUDE_DIRS_CONFIG
 
 #-----------------------------------------------------------------------------
 # Configure OTBConfig.cmake for the BUILD tree.
-CONFIGURE_FILE(${OTB_SOURCE_DIR}/OTBConfig.cmake.in
+CONFIGURE_FILE(${OTB_SOURCE_DIR}/CMake/OTBConfig.cmake.in
                ${OTB_BINARY_DIR}/OTBConfig.cmake @ONLY IMMEDIATE)
 
 #-----------------------------------------------------------------------------
@@ -88,6 +88,6 @@ FOREACH(p ${OTB_INSTALL_PACKAGE_DIR_COUNT})
     )
 ENDFOREACH(p)
 
-CONFIGURE_FILE(${OTB_SOURCE_DIR}/OTBConfig.cmake.in
+CONFIGURE_FILE(${OTB_SOURCE_DIR}/CMake/OTBConfig.cmake.in
                ${OTB_BINARY_DIR}/Utilities/OTBConfig.cmake @ONLY IMMEDIATE)
                
diff --git a/otbIncludeDirectories.cmake b/CMake/otbIncludeDirectories.cmake
similarity index 100%
rename from otbIncludeDirectories.cmake
rename to CMake/otbIncludeDirectories.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e9c9c5ee7..5c7b65ddde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,7 +237,7 @@ ENDMACRO(OTB_ADD_EXECUTABLE)
 # The entire OTB tree should use the same include path
 
 # Create the list of include directories needed for OTB header files.
-INCLUDE(${OTB_SOURCE_DIR}/otbIncludeDirectories.cmake)
+INCLUDE(${OTB_SOURCE_DIR}/CMake/otbIncludeDirectories.cmake)
 
 # This should be the only INCLUDE_DIRECTORIES command in the entire
 # tree, except for the Utilities and Wrapping directories.  We need to
@@ -288,7 +288,7 @@ ENDIF(OTB_DATA_USE_LARGEINPUT)
 #-----------------------------------------------------------------------------
 # Configure files with settings for use by the build
 # This must be done after the definition of all options
-CONFIGURE_FILE(${OTB_SOURCE_DIR}/otbConfigure.h.in
+CONFIGURE_FILE(${OTB_SOURCE_DIR}/CMake/otbConfigure.h.in
                ${OTB_BINARY_DIR}/otbConfigure.h)
 
 #-----------------------------------------------------------------------------
@@ -305,7 +305,7 @@ CONFIGURE_FILE(${OTB_SOURCE_DIR}/otbConfigure.h.in
 # Help other projects use OTB.
 
 # Copy the UseOTB.cmake file to the binary tree for backward compatability.
-CONFIGURE_FILE(${OTB_SOURCE_DIR}/UseOTB.cmake.in
+CONFIGURE_FILE(${OTB_SOURCE_DIR}/CMake/UseOTB.cmake.in
                ${OTB_BINARY_DIR}/UseOTB.cmake COPYONLY IMMEDIATE)
 
 # Save the compiler settings so another project can import them.
@@ -316,7 +316,7 @@ CMAKE_EXPORT_BUILD_SETTINGS(${OTB_BINARY_DIR}/OTBBuildSettings.cmake)
 EXPORT_LIBRARY_DEPENDENCIES(${OTB_BINARY_DIR}/OTBLibraryDepends.cmake)
 
 # Create the OTBConfig.cmake file containing the OTB configuration.
-INCLUDE (${OTB_SOURCE_DIR}/otbGenerateOTBConfig.cmake)
+INCLUDE (${OTB_SOURCE_DIR}/CMake/otbGenerateOTBConfig.cmake)
 
 IF(NOT OTB_INSTALL_NO_DEVELOPMENT)
   INSTALL(FILES
-- 
GitLab