Update lua versions
[ryzomcore.git] / nel / samples / 3d / qtnel / CMakeLists.txt
blob1730cd4b36567a5ca4d3f79a9ee07c6f563ceeca
1 INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR}/samples/3d/qtnel/ )
2 INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/samples/3d/qtnel/ )
3 INCLUDE( ${QT_USE_FILE} )
5 FILE(GLOB QTNEL_SRC *.cpp)
6 SET(QTNEL_HDR qnelwindow.h qnelwidget.h)
7 #SET(TILE_EDIT_UIS tile_widget_qt.ui tile_rotation_qt.ui qtnel.ui tile_browser_qt.ui items_edit_qt.ui)
8 #SET(TILE_EDIT_RCS qtnel.qrc)
10 SET( QT_USE_QTGUI TRUE)
11 SET( QT_USE_QT3SUPPORT TRUE)
12 SET( QT_USE_QTXML TRUE)
13 SET( QT_USE_QTOPENGL TRUE)
15 #QT4_ADD_RESOURCES( TILE_EDIT_RC_SRCS ${TILE_EDIT_RCS} )
16 #QT4_WRAP_UI( TILE_EDIT_UI_HDRS ${TILE_EDIT_UIS} )
17 QT4_WRAP_CPP( QTNEL_MOC_SRCS ${QTNEL_HDR})
19 #ADD_EXECUTABLE(qtnel ${TILE_EDIT_SRC} ${TILE_EDIT_MOC_SRCS} ${TILE_EDIT_RC_SRCS} ${TILE_EDIT_UI_HDRS})
20 ADD_EXECUTABLE(qtnel WIN32 ${QTNEL_SRC} ${QTNEL_MOC_SRCS} ${QTNEL_HDR})
22 INCLUDE_DIRECTORIES(${QT_INCLUDES})
24 TARGET_LINK_LIBRARIES(qtnel ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY} nelmisc nel3d)
25 NL_DEFAULT_PROPS(qtnel "Samples, 3D: Qt Viewer Widget")
26 NL_ADD_RUNTIME_FLAGS(qtnel)
28 ADD_DEFINITIONS(${QT_DEFINITIONS})
30 INSTALL(TARGETS qtnel RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT samples3d)