mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-23 02:42:39 +01:00
36 lines
697 B
CMake
36 lines
697 B
CMake
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
add_executable(rwviewer
|
|
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)
|
|
|
|
include_directories(SYSTEM
|
|
${BULLET_INCLUDE_DIR})
|
|
|
|
target_link_libraries(rwviewer
|
|
rwengine
|
|
${OPENGL_LIBRARIES}
|
|
${BULLET_LIBRARIES})
|
|
qt5_use_modules(rwviewer Widgets OpenGL)
|
|
|
|
install(TARGETS rwviewer RUNTIME DESTINATION "${BIN_DIR}")
|