2010-09-19 16:49:03 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
FILE(GLOB HEADERS ../../include/nel/net/*.h)
|
2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB NET_MANAGER "net_manager.*")
|
|
|
|
LIST(REMOVE_ITEM SRC ${NET_MANAGER})
|
|
|
|
|
2010-09-19 16:49:03 +00:00
|
|
|
NL_TARGET_LIB(nelnet ${HEADERS} ${SRC})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
IF(WITH_GTK)
|
|
|
|
IF(GTK2_FOUND)
|
|
|
|
INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
|
|
|
|
ADD_DEFINITIONS(-DNL_USE_GTK)
|
|
|
|
ENDIF(GTK2_FOUND)
|
|
|
|
ENDIF(WITH_GTK)
|
|
|
|
|
2010-09-01 21:30:06 +00:00
|
|
|
TARGET_LINK_LIBRARIES(nelnet nelmisc)
|
|
|
|
SET_TARGET_PROPERTIES(nelnet PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
2010-09-11 17:44:22 +00:00
|
|
|
NL_DEFAULT_PROPS(nelnet "NeL, Library: NeL Net")
|
2010-09-14 11:51:44 +00:00
|
|
|
NL_ADD_RUNTIME_FLAGS(nelnet)
|
2010-07-14 17:13:07 +00:00
|
|
|
|
|
|
|
NL_ADD_LIB_SUFFIX(nelnet)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-06-30 13:31:31 +00:00
|
|
|
IF(WITH_PCH)
|
2010-07-14 17:13:07 +00:00
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelnet ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.h ${CMAKE_CURRENT_SOURCE_DIR}/stdnet.cpp)
|
2010-06-30 13:31:31 +00:00
|
|
|
ENDIF(WITH_PCH)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-07-14 17:13:07 +00:00
|
|
|
NL_GEN_PC(nel-net.pc)
|
|
|
|
INSTALL(TARGETS nelnet LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|