2014-02-10 13:41:05 +01:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2017-10-26 06:21:39 +02:00
|
|
|
find_package(Qt5OpenGL REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2014-02-10 13:41:05 +01:00
|
|
|
|
2018-08-20 15:46:17 +02:00
|
|
|
add_executable(rwviewer
|
2017-10-26 01:09:47 +02:00
|
|
|
main.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
|
|
|
|
ViewerWindow.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
ViewerWindow.cpp
|
2018-08-30 03:00:39 +02:00
|
|
|
|
|
|
|
models/AnimationListModel.hpp
|
|
|
|
models/AnimationListModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
models/ObjectListModel.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
models/ObjectListModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
models/DFFFramesTreeModel.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
models/DFFFramesTreeModel.cpp
|
2018-08-30 03:00:39 +02:00
|
|
|
models/IMGArchiveModel.hpp
|
|
|
|
models/IMGArchiveModel.cpp
|
|
|
|
models/ItemListModel.hpp
|
|
|
|
models/ItemListModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
models/TextModel.hpp
|
|
|
|
models/TextModel.cpp
|
2017-10-26 01:09:47 +02:00
|
|
|
|
2017-09-07 19:03:18 +02:00
|
|
|
views/ObjectViewer.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
views/ObjectViewer.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
views/ModelViewer.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
views/ModelViewer.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
views/TextViewer.hpp
|
|
|
|
views/TextViewer.cpp
|
|
|
|
views/WorldViewer.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
views/WorldViewer.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
views/ViewerInterface.hpp
|
2018-01-16 02:05:23 +01:00
|
|
|
views/ViewerInterface.cpp
|
2018-08-30 03:00:39 +02:00
|
|
|
|
|
|
|
QOpenGLContextWrapper.hpp
|
|
|
|
QOpenGLContextWrapper.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
ViewerWidget.hpp
|
2018-08-30 03:00:39 +02:00
|
|
|
ViewerWidget.cpp
|
|
|
|
|
|
|
|
widgets/AnimationListWidget.hpp
|
|
|
|
widgets/AnimationListWidget.cpp
|
|
|
|
widgets/ItemListWidget.hpp
|
|
|
|
widgets/ItemListWidget.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
widgets/ModelFramesWidget.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
widgets/ModelFramesWidget.cpp
|
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2014-08-17 00:02:34 +02:00
|
|
|
target_link_libraries(rwviewer
|
2018-06-07 02:19:53 +02:00
|
|
|
PRIVATE
|
|
|
|
rwengine
|
|
|
|
Qt5::OpenGL
|
|
|
|
Qt5::Widgets
|
2017-10-26 03:40:05 +02:00
|
|
|
)
|
|
|
|
|
2018-09-01 18:23:10 +02:00
|
|
|
openrw_target_apply_options(
|
|
|
|
TARGET rwviewer
|
2018-11-27 19:56:25 +01:00
|
|
|
CORE
|
2018-11-20 06:51:34 +01:00
|
|
|
COVERAGE
|
2018-09-01 18:23:10 +02:00
|
|
|
INSTALL INSTALL_PDB
|
2017-10-26 06:21:39 +02:00
|
|
|
)
|
2018-06-07 02:19:53 +02:00
|
|
|
|
|
|
|
if(USE_CONAN)
|
|
|
|
set(QT5_ROOT "${CONAN_QT_ROOT}")
|
|
|
|
configure_file(qt.conf.in qt.conf)
|
|
|
|
endif()
|