48 lines
834 B
CMake
48 lines
834 B
CMake
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${Boost_INCLUDE_DIRS}
|
|
${OCC_INCLUDE_DIR}
|
|
${PYTHON_INCLUDE_DIRS}
|
|
${ZLIB_INCLUDE_DIR}
|
|
${XercesC_INCLUDE_DIRS}
|
|
)
|
|
|
|
if(BUILD_QT5)
|
|
include_directories(
|
|
${Qt5Network_INCLUDE_DIRS}
|
|
)
|
|
set(Web_LIBS
|
|
FreeCADApp
|
|
${Qt5Network_LIBRARIES}
|
|
)
|
|
else()
|
|
set(Web_LIBS
|
|
FreeCADApp
|
|
${QT_LIBRARIES}
|
|
)
|
|
endif()
|
|
|
|
set(Web_MOC_HDRS
|
|
Server.h
|
|
)
|
|
fc_wrap_cpp(Web_MOC_SRCS ${Web_MOC_HDRS})
|
|
SOURCE_GROUP("Moc" FILES ${Web_MOC_SRCS})
|
|
|
|
SET(Web_SRCS
|
|
AppWeb.cpp
|
|
PreCompiled.cpp
|
|
PreCompiled.h
|
|
Server.cpp
|
|
Server.h
|
|
)
|
|
|
|
add_library(Web SHARED ${Web_SRCS})
|
|
target_link_libraries(Web ${Web_LIBS})
|
|
|
|
|
|
SET_BIN_DIR(Web Web /Mod/Web)
|
|
SET_PYTHON_PREFIX_SUFFIX(Web)
|
|
|
|
install(TARGETS Web DESTINATION ${CMAKE_INSTALL_LIBDIR})
|