Merge branch 'main/rendor-staging' into fixes
[ryzomcore.git] / nel / src / net / CMakeLists.txt
bloba3a909ea6b19ec6ffc4923a663000dad593333ad
1 FILE(GLOB SRC *.cpp *.h)
2 FILE(GLOB HEADERS ../../include/nel/net/*.h)
3 FILE(GLOB NET_MANAGER "net_manager.*")
4 LIST(REMOVE_ITEM SRC ${NET_MANAGER})
6 NL_TARGET_LIB(nelnet ${HEADERS} ${SRC})
8 IF(WITH_GTK)
9   IF(GTK2_FOUND)
10     INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
11     ADD_DEFINITIONS(-DNL_USE_GTK)
12   ENDIF()
13 ENDIF()
15 TARGET_LINK_LIBRARIES(nelnet nelmisc)
16 NL_DEFAULT_PROPS(nelnet "NeL, Library: NeL Net")
17 NL_ADD_RUNTIME_FLAGS(nelnet)
19 NL_ADD_LIB_SUFFIX(nelnet)
21 IF(WITH_PCH)
22   ADD_NATIVE_PRECOMPILED_HEADER(nelnet ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.h ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.cpp)
23 ENDIF()
25 NL_GEN_PC(nel-net.pc)
27 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
28   INSTALL(TARGETS nelnet LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
29 ENDIF()