2014-02-10 13:41:05 +01:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
|
|
|
|
add_executable(rwviewer
|
|
|
|
main.cpp
|
|
|
|
ViewerWindow.cpp
|
2014-09-19 01:10:05 +02:00
|
|
|
|
|
|
|
models/ObjectListModel.cpp
|
2015-04-13 02:48:29 +02:00
|
|
|
models/DFFFramesTreeModel.cpp
|
|
|
|
|
2016-05-15 21:25:20 +02:00
|
|
|
views/ViewerInterface.hpp
|
2015-04-13 02:48:29 +02:00
|
|
|
views/ObjectViewer.cpp
|
|
|
|
views/ModelViewer.cpp
|
2016-05-15 21:25:20 +02:00
|
|
|
views/WorldViewer.cpp
|
2014-09-19 01:10:05 +02:00
|
|
|
|
2014-02-10 16:34:09 +01:00
|
|
|
ViewerWidget.cpp
|
2014-06-08 02:58:49 +02:00
|
|
|
ItemListModel.cpp
|
|
|
|
ItemListWidget.cpp
|
2014-02-10 17:21:30 +01:00
|
|
|
IMGArchiveModel.cpp
|
2015-04-13 02:48:29 +02:00
|
|
|
widgets/ModelFramesWidget.cpp
|
2014-03-01 12:19:33 +01:00
|
|
|
AnimationListModel.cpp
|
|
|
|
AnimationListWidget.cpp)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2016-05-19 23:28:12 +02:00
|
|
|
include_directories(
|
|
|
|
"${CMAKE_SOURCE_DIR}/rwengine/include")
|
|
|
|
include_directories(SYSTEM
|
|
|
|
${BULLET_INCLUDE_DIR})
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2014-08-17 00:02:34 +02:00
|
|
|
target_link_libraries(rwviewer
|
|
|
|
rwengine
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${BULLET_LIBRARIES})
|
2014-02-10 13:41:05 +01:00
|
|
|
qt5_use_modules(rwviewer Widgets OpenGL)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
|
|
|
install(TARGETS rwviewer RUNTIME DESTINATION bin)
|