mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 00:06:16 +00:00
Changed: lua, luabind, libwww and libxml2 already linked to previous libraries (NLMISC and NLGUI)
This commit is contained in:
parent
963a40c18f
commit
ba9554d62d
3 changed files with 6 additions and 44 deletions
|
@ -8,7 +8,7 @@ ADD_SUBDIRECTORY(object_viewer)
|
||||||
ADD_SUBDIRECTORY(georges_editor)
|
ADD_SUBDIRECTORY(georges_editor)
|
||||||
|
|
||||||
IF(WITH_GUI)
|
IF(WITH_GUI)
|
||||||
ADD_SUBDIRECTORY(gui_editor)
|
ADD_SUBDIRECTORY(gui_editor)
|
||||||
ENDIF(WITH_GUI)
|
ENDIF(WITH_GUI)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(translation_manager)
|
ADD_SUBDIRECTORY(translation_manager)
|
||||||
|
|
|
@ -1,39 +1,6 @@
|
||||||
IF(WITH_LUA51)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
|
||||||
FIND_PACKAGE(Lua51 REQUIRED)
|
|
||||||
ELSE(WITH_LUA51)
|
|
||||||
FIND_PACKAGE(Lua50 REQUIRED)
|
|
||||||
ENDIF(WITH_LUA51)
|
|
||||||
FIND_PACKAGE(Luabind REQUIRED)
|
|
||||||
FIND_PACKAGE(CURL REQUIRED)
|
|
||||||
|
|
||||||
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
||||||
SET(CURL_STATIC ON)
|
|
||||||
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
||||||
|
|
||||||
IF(CURL_STATIC)
|
|
||||||
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
||||||
FIND_PACKAGE(OpenSSL QUIET)
|
|
||||||
|
|
||||||
IF(OPENSSL_FOUND)
|
|
||||||
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
||||||
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
||||||
ENDIF(OPENSSL_FOUND)
|
|
||||||
|
|
||||||
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
||||||
IF(APPLE)
|
|
||||||
FIND_LIBRARY(IDN_LIBRARY idn)
|
|
||||||
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
||||||
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
|
||||||
ENDIF(APPLE)
|
|
||||||
ENDIF(CURL_STATIC)
|
|
||||||
|
|
||||||
FIND_PACKAGE(Libwww REQUIRED)
|
|
||||||
|
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${LIBXML2_INCLUDE_DIR}
|
${LIBXML2_INCLUDE_DIR}
|
||||||
${LUA_INCLUDE_DIR}
|
|
||||||
${QT_INCLUDES})
|
${QT_INCLUDES})
|
||||||
|
|
||||||
FILE(GLOB SRC *.cpp *.h)
|
FILE(GLOB SRC *.cpp *.h)
|
||||||
|
@ -105,11 +72,6 @@ TARGET_LINK_LIBRARIES(
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
${QT_QTOPENGL_LIBRARY}
|
${QT_QTOPENGL_LIBRARY}
|
||||||
qt_property_browser
|
qt_property_browser
|
||||||
${LUA_LIBRARIES}
|
|
||||||
${LUABIND_LIBRARIES}
|
|
||||||
${CURL_LIBRARIES}
|
|
||||||
${LIBWWW_LIBRARIES}
|
|
||||||
${LIBXML2_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
NL_DEFAULT_PROPS(ovqt_plugin_gui_editor "NeL, Tools, 3D: Object Viewer Qt Plugin: GUI Editor")
|
NL_DEFAULT_PROPS(ovqt_plugin_gui_editor "NeL, Tools, 3D: Object Viewer Qt Plugin: GUI Editor")
|
||||||
|
|
Loading…
Reference in a new issue