mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-13 20:54:49 +00:00
25 lines
959 B
CMake
25 lines
959 B
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
FILE(GLOB HEADERS ../../include/nel/gui/*.h)
|
|
|
|
SOURCE_GROUP("include" FILES ${HEADERS})
|
|
SOURCE_GROUP("src" FILES ${SRC})
|
|
|
|
NL_TARGET_LIB(nelgui ${SRC} ${HEADERS})
|
|
|
|
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR} ${LUABIND_INCLUDE_DIR} ${CURL_INCLUDE_DIRS})
|
|
|
|
TARGET_LINK_LIBRARIES(nelgui nelmisc nel3d ${LUA_LIBRARIES} ${LUABIND_LIBRARIES} ${CURL_LIBRARIES})
|
|
NL_DEFAULT_PROPS(nelgui "NeL, Library: NeL GUI")
|
|
NL_ADD_RUNTIME_FLAGS(nelgui)
|
|
|
|
NL_ADD_LIB_SUFFIX(nelgui)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} ${LUABIND_DEFINITIONS})
|
|
|
|
IF(WITH_PCH)
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelgui ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp)
|
|
ENDIF(WITH_PCH)
|
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
INSTALL(TARGETS nelgui LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|