2013-02-17 13:30:05 +00:00
|
|
|
FIND_PACKAGE( Libwww REQUIRED )
|
|
|
|
FIND_PACKAGE( CURL REQUIRED )
|
|
|
|
FIND_PACKAGE( Lua51 REQUIRED )
|
|
|
|
FIND_PACKAGE( Luabind REQUIRED )
|
|
|
|
|
2013-02-14 15:53:06 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
FILE(GLOB HEADERS ../../include/nel/gui/*.h)
|
|
|
|
|
|
|
|
NL_TARGET_LIB(nelgui ${HEADERS} ${SRC})
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(nelgui PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
|
NL_DEFAULT_PROPS(nelgui "NeL, Library: NeL GUI")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(nelgui)
|
|
|
|
|
2013-02-19 16:04:40 +00:00
|
|
|
INCLUDE_DIRECTORIES( ${LUA_INCLUDE_DIR} ${LIBWWW_INCLUDE_DIR})
|
2013-02-17 13:30:05 +00:00
|
|
|
|
2013-02-14 15:53:06 +00:00
|
|
|
NL_ADD_LIB_SUFFIX(nelgui)
|
|
|
|
|
2013-02-17 13:30:05 +00:00
|
|
|
#MESSAGE( "libww libs: ${LIBWWW_LIBRARIES}" )
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES( nelgui
|
|
|
|
nelmisc
|
|
|
|
nel3d
|
|
|
|
${LUA_LIBRARIES}
|
|
|
|
${LUABIND_LIBRARIES}
|
|
|
|
${LIBXML2_LIBRARIES}
|
|
|
|
${LIBWWW_LIBRARIES}
|
|
|
|
${CURL_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2013-02-14 15:53:06 +00:00
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
|
|
INSTALL(TARGETS nelgui LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|