Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / nel / src / web / CMakeLists.txt
blob042967fa2ea5a5aee36c5e0946952064091a84bf
1 FILE(GLOB SRC *.cpp *.h)
2 FILE(GLOB HEADERS ../../include/nel/web/*.h)
4 SOURCE_GROUP("" FILES ${SRC} ${HEADERS})
6 NL_TARGET_LIB(nelweb ${HEADERS} ${SRC})
8 INCLUDE_DIRECTORIES(../../3rdparty)
9 INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
11 TARGET_LINK_LIBRARIES(nelweb ${LIBXML2_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES} nelmisc nel_sevenzip)
13 NL_DEFAULT_PROPS(nelweb "NeL, Library: NeL Web")
14 NL_ADD_RUNTIME_FLAGS(nelweb)
16 NL_ADD_LIB_SUFFIX(nelweb)
18 ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS})
20 IF(WITH_PCH)
21   ADD_NATIVE_PRECOMPILED_HEADER(nelweb ${CMAKE_CURRENT_SOURCE_DIR}/stdweb.h ${CMAKE_CURRENT_SOURCE_DIR}/stdweb.cpp)
22 ENDIF()
24 NL_GEN_PC(nel-web.pc)
26 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
27   INSTALL(TARGETS nelweb LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
28 ENDIF()