2013-02-14 15:53:06 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
FILE(GLOB HEADERS ../../include/nel/gui/*.h)
|
|
|
|
|
2013-03-24 19:16:23 +00:00
|
|
|
SOURCE_GROUP("include" FILES ${HEADERS})
|
|
|
|
SOURCE_GROUP("src" FILES ${SRC})
|
|
|
|
|
|
|
|
NL_TARGET_LIB(nelgui ${SRC} ${HEADERS})
|
2013-02-14 15:53:06 +00:00
|
|
|
|
2015-02-20 16:17:07 +00:00
|
|
|
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR} ${LUABIND_INCLUDE_DIR} ${LIBWWW_INCLUDE_DIR} ${CURL_INCLUDE_DIRS})
|
2013-09-30 07:11:35 +00:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelgui nelmisc nel3d ${LUA_LIBRARIES} ${LUABIND_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBWWW_LIBRARIES} ${CURL_LIBRARIES})
|
2013-02-14 15:53:06 +00:00
|
|
|
SET_TARGET_PROPERTIES(nelgui PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
|
NL_DEFAULT_PROPS(nelgui "NeL, Library: NeL GUI")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(nelgui)
|
|
|
|
|
|
|
|
NL_ADD_LIB_SUFFIX(nelgui)
|
|
|
|
|
2013-09-08 10:52:00 +00:00
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS})
|
|
|
|
|
2013-03-24 19:16:23 +00:00
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelgui ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
2013-02-14 15:53:06 +00:00
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
2013-09-30 07:11:35 +00:00
|
|
|
INSTALL(TARGETS nelgui LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
|
2013-02-14 15:53:06 +00:00
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|