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
|
|
|
ObjectViewer.cpp
|
|
|
|
|
|
|
|
models/ObjectListModel.cpp
|
|
|
|
|
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
|
2014-02-12 07:42:07 +01:00
|
|
|
DFFFramesTreeModel.cpp
|
2014-03-01 12:19:33 +01:00
|
|
|
ModelFramesWidget.cpp
|
|
|
|
AnimationListModel.cpp
|
|
|
|
AnimationListWidget.cpp)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2014-08-15 23:49:58 +02:00
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/rwengine/include" ${BULLET_INCLUDE_DIR})
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2014-08-17 00:02:34 +02:00
|
|
|
target_link_libraries(rwviewer
|
|
|
|
rwengine
|
|
|
|
sfml-graphics
|
|
|
|
sfml-system
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
GLEW
|
|
|
|
${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)
|