Moved contributed CMake modules to "cmake" folder

By convention CMake project files are placed on a folder called "cmake" and then called from the build system by appending the CMAKE_MODULE_PATH variable
This commit is contained in:
Mathäus Mendel
2012-12-16 00:40:40 -02:00
parent ee70421f64
commit dc9aafa7a1
11 changed files with 8 additions and 126 deletions

View File

@@ -23,6 +23,9 @@ SET(PROJECT_VERSION ${COMPLETE_VERSION})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
# Append our module directory to CMake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
#################################################################################
# Setup C/C++ compiler options
#################################################################################
@@ -98,9 +101,9 @@ include(FindCygwin)
include(FindOpenSSL)
#include(CMakeDetermineCompilerId)
include(contrib/cmake/FindMySQL.cmake)
include(contrib/cmake/FindAPR.cmake)
include(contrib/cmake/FindApache2.cmake)
include(FindMySQL)
include(FindAPR)
include(FindApache2)
# OS Detection
if(CMAKE_SYSTEM MATCHES "Windows")
@@ -179,7 +182,7 @@ endif(APRUTIL_FOUND AND APACHE_FOUND)
#############################################################
# Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/contrib/cmake/cmake_uninstall.cmake.in"
"${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)