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-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-06-18 18:07:51 +02:00
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/rwengine/include" ${BULLET_INCLUDE_DIRS})
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2014-06-18 18:07:51 +02:00
|
|
|
target_link_libraries(rwviewer rwengine sfml-graphics sfml-system GL 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)
|