1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

cmake: add all files to cmake

This commit is contained in:
Anonymous Maarten 2018-08-30 03:00:39 +02:00
parent 089b49b77a
commit 2d595bede7
13 changed files with 36 additions and 26 deletions

View File

@ -41,8 +41,10 @@ set(RWENGINE_SOURCES
src/data/PathData.hpp src/data/PathData.hpp
src/data/PedData.cpp src/data/PedData.cpp
src/data/PedData.hpp src/data/PedData.hpp
src/data/VehicleGenerator.hpp
src/data/WeaponData.hpp src/data/WeaponData.hpp
src/data/Weather.cpp src/data/Weather.cpp
src/data/Weather.hpp
src/data/ZoneData.hpp src/data/ZoneData.hpp
src/dynamics/CollisionInstance.cpp src/dynamics/CollisionInstance.cpp
@ -53,6 +55,7 @@ set(RWENGINE_SOURCES
src/engine/Animator.hpp src/engine/Animator.hpp
src/engine/GameData.cpp src/engine/GameData.cpp
src/engine/GameData.hpp src/engine/GameData.hpp
src/engine/GameInputState.hpp
src/engine/GameState.cpp src/engine/GameState.cpp
src/engine/GameState.hpp src/engine/GameState.hpp
src/engine/GameWorld.cpp src/engine/GameWorld.cpp
@ -136,6 +139,7 @@ set(RWENGINE_SOURCES
src/script/ScriptTypes.hpp src/script/ScriptTypes.hpp
src/script/modules/GTA3Module.cpp src/script/modules/GTA3Module.cpp
src/script/modules/GTA3Module.hpp src/script/modules/GTA3Module.hpp
src/script/modules/GTA3ModuleImpl.inl
) )
add_library(rwengine add_library(rwengine

View File

@ -8,21 +8,28 @@ set(RWGAME_SOURCES
GameBase.hpp GameBase.hpp
GameBase.cpp GameBase.cpp
RWGame.hpp
RWGame.cpp RWGame.cpp
GameConfig.hpp
GameConfig.cpp GameConfig.cpp
GameWindow.hpp
GameWindow.cpp GameWindow.cpp
DrawUI.cpp
DrawUI.hpp
MenuSystem.hpp
MenuSystem.cpp
GameInput.hpp
GameInput.cpp
game.hpp
WindowIcon.hpp
StateManager.hpp StateManager.hpp
StateManager.cpp StateManager.cpp
State.hpp
State.cpp State.cpp
MenuSystem.hpp
MenuSystem.cpp
GameInput.hpp
GameInput.cpp
states/LoadingState.hpp states/LoadingState.hpp
states/LoadingState.cpp states/LoadingState.cpp
states/IngameState.hpp states/IngameState.hpp
@ -36,7 +43,6 @@ set(RWGAME_SOURCES
states/BenchmarkState.hpp states/BenchmarkState.hpp
states/BenchmarkState.cpp states/BenchmarkState.cpp
DrawUI.cpp
) )
add_executable(rwgame add_executable(rwgame

View File

@ -9,15 +9,20 @@ add_executable(rwviewer
ViewerWindow.hpp ViewerWindow.hpp
ViewerWindow.cpp ViewerWindow.cpp
models/AnimationListModel.hpp
models/AnimationListModel.cpp
models/ObjectListModel.hpp models/ObjectListModel.hpp
models/ObjectListModel.cpp models/ObjectListModel.cpp
models/DFFFramesTreeModel.hpp models/DFFFramesTreeModel.hpp
models/DFFFramesTreeModel.cpp models/DFFFramesTreeModel.cpp
models/IMGArchiveModel.hpp
models/IMGArchiveModel.cpp
models/ItemListModel.hpp
models/ItemListModel.cpp
models/TextModel.hpp models/TextModel.hpp
models/TextModel.cpp models/TextModel.cpp
views/ViewerInterface.hpp
views/ObjectViewer.hpp views/ObjectViewer.hpp
views/ObjectViewer.cpp views/ObjectViewer.cpp
views/ModelViewer.hpp views/ModelViewer.hpp
@ -28,23 +33,18 @@ add_executable(rwviewer
views/WorldViewer.cpp views/WorldViewer.cpp
views/ViewerInterface.hpp views/ViewerInterface.hpp
views/ViewerInterface.cpp views/ViewerInterface.cpp
ViewerWidget.cpp QOpenGLContextWrapper.hpp
QOpenGLContextWrapper.cpp
ViewerWidget.hpp ViewerWidget.hpp
ItemListModel.hpp ViewerWidget.cpp
ItemListModel.cpp
ItemListWidget.hpp widgets/AnimationListWidget.hpp
ItemListWidget.cpp widgets/AnimationListWidget.cpp
IMGArchiveModel.hpp widgets/ItemListWidget.hpp
IMGArchiveModel.cpp widgets/ItemListWidget.cpp
widgets/ModelFramesWidget.hpp widgets/ModelFramesWidget.hpp
widgets/ModelFramesWidget.cpp widgets/ModelFramesWidget.cpp
AnimationListModel.hpp
AnimationListModel.cpp
AnimationListWidget.hpp
AnimationListWidget.cpp
QOpenGLContextWrapper.cpp
QOpenGLContextWrapper.hpp
) )
target_link_libraries(rwviewer target_link_libraries(rwviewer

View File

@ -5,7 +5,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QListView> #include <QListView>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include "AnimationListModel.hpp" #include "models/AnimationListModel.hpp"
class AnimationListWidget : public QDockWidget { class AnimationListWidget : public QDockWidget {
Q_OBJECT Q_OBJECT

View File

@ -5,7 +5,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QTableView> #include <QTableView>
#include "ItemListModel.hpp" #include "models/ItemListModel.hpp"
class ItemListWidget : public QDockWidget { class ItemListWidget : public QDockWidget {
Q_OBJECT Q_OBJECT