khanat-opennel-code/code/nel/src/net/CMakeLists.txt

30 lines
814 B
Text
Raw Normal View History

FILE(GLOB SRC *.cpp *.h)
FILE(GLOB HEADERS ../../include/nel/net/*.h)
FILE(GLOB NET_MANAGER "net_manager.*")
LIST(REMOVE_ITEM SRC ${NET_MANAGER})
NL_TARGET_LIB(nelnet ${HEADERS} ${SRC})
IF(WITH_GTK)
IF(GTK2_FOUND)
INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
ADD_DEFINITIONS(-DNL_USE_GTK)
ENDIF()
ENDIF()
TARGET_LINK_LIBRARIES(nelnet nelmisc)
NL_DEFAULT_PROPS(nelnet "NeL, Library: NeL Net")
NL_ADD_RUNTIME_FLAGS(nelnet)
NL_ADD_LIB_SUFFIX(nelnet)
IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nelnet ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.h ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.cpp)
ENDIF()
NL_GEN_PC(nel-net.pc)
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
2012-09-22 20:57:38 +00:00
INSTALL(TARGETS nelnet LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
ENDIF()