mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-12 02:09:52 +00:00
28 lines
782 B
CMake
28 lines
782 B
CMake
FILE(GLOB SRC "*.cpp")
|
|
FILE(GLOB NET_MANAGER "net_manager.*")
|
|
LIST(REMOVE_ITEM SRC ${NET_MANAGER})
|
|
|
|
NL_TARGET_LIB(nelnet ${SRC})
|
|
|
|
IF(WITH_GTK)
|
|
IF(GTK2_FOUND)
|
|
INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
|
|
ADD_DEFINITIONS(-DNL_USE_GTK)
|
|
ENDIF(GTK2_FOUND)
|
|
ENDIF(WITH_GTK)
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
TARGET_LINK_LIBRARIES(nelnet ${LIBXML2_LIBRARIES} nelmisc)
|
|
NL_DEFAULT_PROPS(nelnet "Library: NeL Net")
|
|
|
|
NL_ADD_LIB_SUFFIX(nelnet)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
IF(WITH_PCH)
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelnet ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.h ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.cpp)
|
|
ENDIF(WITH_PCH)
|
|
|
|
NL_GEN_PC(nel-net.pc)
|
|
INSTALL(TARGETS nelnet LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|