mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +02:00
a40a2706a9
The output is currently very verbose and includes many false positives. Adding a mapping file should solve this. See https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
39 lines
750 B
CMake
39 lines
750 B
CMake
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
find_package(Qt5OpenGL REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
add_executable(rwviewer WIN32
|
|
main.cpp
|
|
ViewerWindow.cpp
|
|
|
|
models/ObjectListModel.cpp
|
|
models/DFFFramesTreeModel.cpp
|
|
|
|
views/ViewerInterface.hpp
|
|
views/ObjectViewer.cpp
|
|
views/ModelViewer.cpp
|
|
views/WorldViewer.cpp
|
|
|
|
ViewerWidget.cpp
|
|
ItemListModel.cpp
|
|
ItemListWidget.cpp
|
|
IMGArchiveModel.cpp
|
|
widgets/ModelFramesWidget.cpp
|
|
AnimationListModel.cpp
|
|
AnimationListWidget.cpp
|
|
)
|
|
|
|
target_link_libraries(rwviewer
|
|
rwengine
|
|
Qt5::OpenGL
|
|
Qt5::Widgets
|
|
)
|
|
|
|
openrw_target_apply_options(TARGET rwviewer)
|
|
|
|
install(TARGETS rwviewer
|
|
RUNTIME DESTINATION "${BIN_DIR}"
|
|
)
|