mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
don't include civetweb in DomainServer
This commit is contained in:
parent
d236d6335d
commit
c5e10465c4
1 changed files with 2 additions and 16 deletions
|
@ -16,15 +16,10 @@ find_package(Qt5Network REQUIRED)
|
||||||
|
|
||||||
include(${MACRO_DIR}/SetupHifiProject.cmake)
|
include(${MACRO_DIR}/SetupHifiProject.cmake)
|
||||||
|
|
||||||
# grab cJSON and civetweb sources to pass as OPTIONAL_SRCS
|
setup_hifi_project(${TARGET_NAME} TRUE)
|
||||||
FILE(GLOB OPTIONAL_SRCS ${ROOT_DIR}/externals/civetweb/src/*)
|
|
||||||
|
|
||||||
setup_hifi_project(${TARGET_NAME} TRUE ${OPTIONAL_SRCS})
|
|
||||||
|
|
||||||
qt5_use_modules(${TARGET_NAME} Network)
|
qt5_use_modules(${TARGET_NAME} Network)
|
||||||
|
|
||||||
include_directories(SYSTEM ${ROOT_DIR}/externals/civetweb/include)
|
|
||||||
|
|
||||||
# remove and then copy the files for the webserver
|
# remove and then copy the files for the webserver
|
||||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove_directory
|
COMMAND ${CMAKE_COMMAND} -E remove_directory
|
||||||
|
@ -38,12 +33,3 @@ add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
||||||
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
||||||
link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
||||||
link_hifi_library(embedded-webserver ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(embedded-webserver ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
|
||||||
# link dl library on UNIX for civetweb
|
|
||||||
if (UNIX AND NOT APPLE)
|
|
||||||
target_link_libraries(${TARGET_NAME} ${CMAKE_DL_LIBS})
|
|
||||||
endif (UNIX AND NOT APPLE)
|
|
||||||
|
|
||||||
IF (WIN32)
|
|
||||||
target_link_libraries(${TARGET_NAME} Winmm)
|
|
||||||
ENDIF(WIN32)
|
|
||||||
|
|
Loading…
Reference in a new issue