mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 01:18:46 +00:00
Moved the Nel 3d widget into it's own library.
This commit is contained in:
parent
f8004546db
commit
41727220e0
6 changed files with 46 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
ADD_SUBDIRECTORY(3rdparty)
|
||||
ADD_SUBDIRECTORY(Nel3DWidget)
|
||||
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${QT_INCLUDES})
|
||||
INCLUDE( ${QT_USE_FILE} )
|
||||
|
|
36
code/studio/src/Nel3DWidget/CMakeLists.txt
Normal file
36
code/studio/src/Nel3DWidget/CMakeLists.txt
Normal file
|
@ -0,0 +1,36 @@
|
|||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${QT_INCLUDES}
|
||||
)
|
||||
|
||||
INCLUDE( ${QT_USE_FILE} )
|
||||
|
||||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
SET(NEL3DWIDGET_HDR
|
||||
nel3d_widget.h
|
||||
)
|
||||
|
||||
SET(QT_USE_QTGUI TRUE)
|
||||
|
||||
QT4_WRAP_CPP( NEL3DWIDGET_MOC_SRC ${NEL3DWIDGET_HDR} )
|
||||
|
||||
SOURCE_GROUP(QtGeneratedMocSrc FILES ${NEL3DWIDGET_MOC_SRC} )
|
||||
SOURCE_GROUP("Nel 3D Widget files" FILES ${SRC})
|
||||
|
||||
ADD_LIBRARY(nel3dwidget SHARED
|
||||
${SRC}
|
||||
${NEL3DWIDGET_MOC_SRC}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES( nel3dwidget
|
||||
nelmisc
|
||||
nel3d
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
NL_DEFAULT_PROPS(nel3dwidget "Nel3D Qt Widget")
|
||||
NL_ADD_RUNTIME_FLAGS(nel3dwidget)
|
||||
NL_ADD_LIB_SUFFIX(nel3dwidget)
|
||||
|
||||
ADD_DEFINITIONS( -DN3DW_LIB -DQT_DLL -DQT_SHARED ${QT_DEFINITIONS} )
|
|
@ -22,6 +22,12 @@
|
|||
#include "nel/misc/types_nl.h"
|
||||
#include <string>
|
||||
|
||||
#if defined( N3DW_LIB )
|
||||
#define N3DW_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define N3DW_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
namespace NL3D
|
||||
{
|
||||
class UDriver;
|
||||
|
@ -29,7 +35,7 @@ namespace NL3D
|
|||
}
|
||||
|
||||
/// Nel 3D interface to Qt
|
||||
class Nel3DWidget : public QWidget
|
||||
class N3DW_EXPORT Nel3DWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
|
@ -24,7 +24,6 @@ SET(OVQT_PLUGIN_GUI_EDITOR_HDR
|
|||
action_editor.h
|
||||
property_browser_ctrl.h
|
||||
project_window.h
|
||||
nel3d_widget.h
|
||||
nelgui_ctrl.h
|
||||
new_property_widget.h
|
||||
new_widget_widget.h
|
||||
|
@ -78,6 +77,7 @@ TARGET_LINK_LIBRARIES(
|
|||
${QT_QTOPENGL_LIBRARY}
|
||||
${LIBXML2_LIBRARIES}
|
||||
qt_property_browser
|
||||
nel3dwidget
|
||||
)
|
||||
|
||||
NL_DEFAULT_PROPS(studio_plugin_gui_editor "Tools: Studio Plugin: GUI Editor")
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <QTimerEvent>
|
||||
#include "editor_selection_watcher.h"
|
||||
|
||||
#include "nel3d_widget.h"
|
||||
#include "../../Nel3DWidget/nel3d_widget.h"
|
||||
|
||||
namespace GUIEditor
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue