khanat-opennel-code/code/nel/samples/3d/qtnel/CMakeLists.txt

29 lines
1.2 KiB
Text
Raw Normal View History

2010-07-14 14:52:15 +00:00
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR}/samples/3d/qtnel/ )
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/samples/3d/qtnel/ )
INCLUDE( ${QT_USE_FILE} )
FILE(GLOB QTNEL_SRC *.cpp)
SET(QTNEL_HDR qnelwindow.h qnelwidget.h)
#SET(TILE_EDIT_UIS tile_widget_qt.ui tile_rotation_qt.ui qtnel.ui tile_browser_qt.ui items_edit_qt.ui)
#SET(TILE_EDIT_RCS qtnel.qrc)
SET( QT_USE_QTGUI TRUE)
SET( QT_USE_QT3SUPPORT TRUE)
SET( QT_USE_QTXML TRUE)
SET( QT_USE_QTOPENGL TRUE)
#QT4_ADD_RESOURCES( TILE_EDIT_RC_SRCS ${TILE_EDIT_RCS} )
#QT4_WRAP_UI( TILE_EDIT_UI_HDRS ${TILE_EDIT_UIS} )
QT4_WRAP_CPP( QTNEL_MOC_SRCS ${QTNEL_HDR})
#ADD_EXECUTABLE(qtnel ${TILE_EDIT_SRC} ${TILE_EDIT_MOC_SRCS} ${TILE_EDIT_RC_SRCS} ${TILE_EDIT_UI_HDRS})
ADD_EXECUTABLE(qtnel ${QTNEL_SRC} ${QTNEL_MOC_SRCS} ${QTNEL_HDR})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${QT_INCLUDES})
TARGET_LINK_LIBRARIES(qtnel ${LIBXML2_LIBRARIES} ${QT_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${PLATFORM_LINKFLAGS} nelmisc nel3d)
SET_TARGET_PROPERTIES(qtnel PROPERTIES PROJECT_LABEL "Samples, 3D: Qt Viewer Widget")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${QT_DEFINITIONS})
INSTALL(TARGETS qtnel RUNTIME DESTINATION bin COMPONENT samples3d)