# Misc. options
SET(WITH_MODULES "" CACHE STRING "comma-separated paths to single-file modules to statically link into the server")
+SET(EXTRA_INCLUDE_DIRS "" CACHE STRING "extra include directories")
# Options for each available module
# "A" ("A"ctive) means installed and active in default .conf, fail if can't be built
SET(HTTPD_INCLUDE_DIRECTORIES
${PROJECT_BINARY_DIR}
+ ${EXTRA_INCLUDE_DIRS}
# see discussion in cmake bug 13188 regarding oddities with relative paths
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/os/win32
${CMAKE_CURRENT_SOURCE_DIR}/modules/ssl
${CMAKE_CURRENT_SOURCE_DIR}/server
${APR_INCLUDE_DIR}
- ${APR_PRIVATE_INCLUDE_DIRS}
${PCRE_INCLUDE_DIR}
)
+# The .h files we install from outside the main include directory
+# largely parallel the include directories above.
+SET(other_installed_h
+ ${PROJECT_BINARY_DIR}/ap_config_layout.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/os/win32/os.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/cache/mod_cache.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/core/mod_so.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/core/mod_watchdog.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/database/mod_dbd.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/dav/main/mod_dav.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/filters/mod_include.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/filters/mod_xml2enc.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/generators/mod_cgi.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/generators/mod_status.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/loggers/mod_log_config.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/mappers/mod_rewrite.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/proxy/mod_proxy.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/session/mod_session.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/modules/ssl/mod_ssl.h
+)
+
INCLUDE_DIRECTORIES(${HTTPD_INCLUDE_DIRECTORIES})
SET(HTTPD_SYSTEM_LIBS
INSTALL(DIRECTORY include/ DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
+INSTALL(FILES ${other_installed_h} DESTINATION include)
+
INSTALL(DIRECTORY docs/manual/ DESTINATION manual
FILES_MATCHING PATTERN "BUILDING" EXCLUDE
)
the autoconf-based build. Key differences: The modpath (e.g.,
"generators") isn't provided or used, and the copy of the module
source being built is automatically updated when it changes.
+ See also EXTRA_INCLUDE_DIRS.
+
+ EXTRA_INCLUDE_DIRS:
+ List of additional directories to search for .h files. This may
+ be necessary when including third-party modules in the httpd build
+ via WITH_MODULES.
Port and SSLPort: port numbers for substitution into default .conf files.
(The defaults are 80 and 443.)
* ab + HAVE_OPENSSL isn't working at all, even for non-SSL
* ApacheMonitor has a build error and is disabled
* CGI examples aren't installed
-* .h files which reside outside of include are not installed
* module enablement defaults are not in sync with the autoconf-based build
Generally: