Selaa lähdekoodia

[cmake] let enable X DOM sockets

Missing in cmake
Sergey Linev 1 vuosi sitten
vanhempi
commit
08b7241f4b
1 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. 10 2
      CMakeLists.txt

+ 10 - 2
CMakeLists.txt

@@ -88,6 +88,11 @@ message(STATUS "IP Version 6 - ${CIVETWEB_ENABLE_IPV6}")
 option(CIVETWEB_ENABLE_WEBSOCKETS "Enable websockets connections" OFF)
 option(CIVETWEB_ENABLE_WEBSOCKETS "Enable websockets connections" OFF)
 message(STATUS "Websockets support - ${CIVETWEB_ENABLE_WEBSOCKETS}")
 message(STATUS "Websockets support - ${CIVETWEB_ENABLE_WEBSOCKETS}")
 
 
+# X DOM sockets support
+option(CIVETWEB_ENABLE_X_DOM_SOCKET "Enable X DOM sockets support" OFF)
+message(STATUS "X DOM sockets support - ${CIVETWEB_ENABLE_X_DOM_SOCKET}")
+
+
 # Server statistics support
 # Server statistics support
 option(CIVETWEB_ENABLE_SERVER_STATS "Enable server statistics" OFF)
 option(CIVETWEB_ENABLE_SERVER_STATS "Enable server statistics" OFF)
 message(STATUS "Server statistics support - ${CIVETWEB_ENABLE_SERVER_STATS}")
 message(STATUS "Server statistics support - ${CIVETWEB_ENABLE_SERVER_STATS}")
@@ -497,6 +502,9 @@ endif()
 if (CIVETWEB_ENABLE_WEBSOCKETS)
 if (CIVETWEB_ENABLE_WEBSOCKETS)
   add_definitions(-DUSE_WEBSOCKET)
   add_definitions(-DUSE_WEBSOCKET)
 endif()
 endif()
+if (CIVETWEB_ENABLE_X_DOM_SOCKET)
+   add_definitions(-DUSE_X_DOM_SOCKET)
+endif()
 if (CIVETWEB_ENABLE_SERVER_STATS)
 if (CIVETWEB_ENABLE_SERVER_STATS)
   add_definitions(-DUSE_SERVER_STATS)
   add_definitions(-DUSE_SERVER_STATS)
 endif()
 endif()
@@ -632,13 +640,13 @@ configure_file(
 )
 )
 
 
 install(
 install(
-  FILES 
+  FILES
     "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc"
     "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.pc"
     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
 )
 )
 
 
 install(
 install(
-  FILES 
+  FILES
     "${PROJECT_BINARY_DIR}/${PROJECT_NAME}-cpp.pc"
     "${PROJECT_BINARY_DIR}/${PROJECT_NAME}-cpp.pc"
     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
     DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
 )
 )