mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-17 03:55:59 +01:00
dc9aafa7a1
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
32 lines
843 B
CMake
32 lines
843 B
CMake
# -*- cmake -*-
|
|
|
|
# - Find Apache Runtime
|
|
# Find the APACHE includes and libraries
|
|
# This module defines
|
|
# APACHE_INCLUDE_DIR and APACHEUTIL_INCLUDE_DIR, where to find APACHE.h, etc.
|
|
# APACHE_LIBRARIES and APACHEUTIL_LIBRARIES, the libraries needed to use APACHE.
|
|
# APACHE_FOUND and APACHEUTIL_FOUND, If false, do not try to use APACHE.
|
|
# also defined, but not for general use are
|
|
# APACHE_LIBRARY and APACHEUTIL_LIBRARY, where to find the APACHE library.
|
|
|
|
FIND_PATH(APACHE_INCLUDE_DIR httpd.h
|
|
/usr/local/include/apache2
|
|
/usr/include/apache2
|
|
)
|
|
|
|
IF (APACHE_INCLUDE_DIR)
|
|
SET(APACHE_FOUND "YES")
|
|
ELSE (APACHE_LIBRARY AND APACHE_INCLUDE_DIR)
|
|
SET(APACHE_FOUND "NO")
|
|
ENDIF (APACHE_INCLUDE_DIR)
|
|
|
|
|
|
IF (APACHE_FOUND)
|
|
MESSAGE(STATUS "Found APACHE: ${APACHE_INCLUDE_DIR}")
|
|
ENDIF (APACHE_FOUND)
|
|
|
|
MARK_AS_ADVANCED(
|
|
APACHE_INCLUDE_DIR
|
|
)
|
|
|