1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00
openrw/rwviewer/CMakeLists.txt
Anonymous Maarten a40a2706a9 cmake: add support for include-what-you-use to check #include's
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
2017-10-29 20:40:57 +00:00

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}"
)