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
|
|
|
|
2017-10-26 06:21:39 +02:00
|
|
|
add_executable(rwviewer WIN32
|
2017-10-26 01:09:47 +02:00
|
|
|
main.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
OpenGLCompat.h
|
|
|
|
|
|
|
|
ViewerWindow.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
ViewerWindow.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
|
2017-09-07 19:03:18 +02:00
|
|
|
models/TextModel.hpp
|
|
|
|
models/TextModel.cpp
|
2017-10-26 01:09:47 +02:00
|
|
|
|
|
|
|
views/ViewerInterface.hpp
|
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
|
2017-10-26 01:09:47 +02:00
|
|
|
|
|
|
|
ViewerWidget.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
ViewerWidget.hpp
|
|
|
|
ItemListModel.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
ItemListModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
ItemListWidget.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
ItemListWidget.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
IMGArchiveModel.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
IMGArchiveModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
widgets/ModelFramesWidget.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
widgets/ModelFramesWidget.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
AnimationListModel.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
AnimationListModel.cpp
|
2017-09-07 19:03:18 +02:00
|
|
|
AnimationListWidget.hpp
|
2017-10-26 01:09:47 +02:00
|
|
|
AnimationListWidget.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
|
|
|
)
|
|
|
|
|
2017-10-29 07:37:18 +01:00
|
|
|
openrw_target_apply_options(TARGET rwviewer)
|
|
|
|
|
2017-10-26 06:21:39 +02:00
|
|
|
install(TARGETS rwviewer
|
2018-06-01 17:46:13 +02:00
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
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()
|