mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-19 04:45:55 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user