cmake_minimum_required(VERSION 3.18)
project(mechvm)

set(SOURCE_FILES
../source/AeroTech.cpp
../source/AeroTech.cpp
../source/Archive.cpp
../source/ArchiveViewer.cpp
../source/Audio.cpp
../source/BGBase.cpp
../source/BGCPString.cpp
../source/BGProcess.cpp
../source/BipedMech.cpp
../source/BoundingBox.cpp
../source/Color.cpp
../source/CombatVehicle.cpp
../source/Config.cpp
../source/Database_MW2.cpp
../source/dialogs.cpp
../source/FighterAI-space.cpp
../source/FighterAI.cpp
../source/FighterPlayer.cpp
../source/FileCache.cpp
../source/FileList.cpp
../source/Font.cpp
../source/FramerateCounter.cpp
../source/GameObject.cpp
../source/GLButton.cpp
../source/GLComboBox.cpp
../source/GLContextMenu.cpp
../source/GLLabel.cpp
../source/GLLineEdit.cpp
../source/GLScrollbar.cpp
../source/GLSlider.cpp
../source/GLTableView.cpp
../source/GLWindow.cpp
../source/GLWindowContainer.cpp
../source/GroundVehicleAI.cpp
../source/Installers.cpp
../source/intersections.cpp
../source/ISO9660.cpp
../source/LevelEd.cpp
../source/LightSource.cpp
../source/LZdecode.cpp
../source/Matrix.cpp
../source/MechLab.cpp
../source/MechShell.cpp
../source/MechSim.cpp
../source/MechSimOverlay.cpp
../source/MechVM.cpp
../source/MechWarrior3AnimFile.cpp
../source/MechWarrior3GameZArchive.cpp
../source/MechWarrior3MechImporter.cpp
../source/MechWarrior3Reader.cpp
../source/MechWarrior3ZBD.cpp
../source/MechWarrior4Reader.cpp
../source/MechWarriorIIPRJ.cpp
../source/MechWarriorInstallers.cpp
../source/MemoryBlock.cpp
../source/Mesh.cpp
../source/MeshPolygon.cpp
../source/MissionGoals.cpp
../source/ModelViewNormalTransformer.cpp
../source/MW2MechImporter.cpp
../source/MWBase.cpp
../source/Palette.cpp
../source/PlayerGroundVehicle.cpp
../source/Point3D.cpp
../source/QuadMech.cpp
../source/RenderableObject.cpp
../source/RenderToTexture.cpp
../source/SmackerView.cpp
../source/Sound.cpp
../source/SPTree.cpp
../source/StartGameScreen.cpp
../source/test.cpp
../source/Texture.cpp
../source/TextureCompiler.cpp
../source/VehicleAI.cpp
../source/Vehicles.cpp
../source/VTOL.cpp
../source/VTOLAI.cpp
../source/XMLTree.cpp
../source/ZFSF.cpp
../libsmacker-1.1.1r35/
../libsmacker-1.1.1r35/configure.ac
../libsmacker-1.1.1r35/COPYING
#../libsmacker-1.1.1r35/driver.c
#../libsmacker-1.1.1r35/Makefile.am
#../libsmacker-1.1.1r35/README
../libsmacker-1.1.1r35/smacker.c
../libsmacker-1.1.1r35/smacker.h
#../libsmacker-1.1.1r35/smk2avi.c
../libsmacker-1.1.1r35/smk_bitstream.c
../libsmacker-1.1.1r35/smk_bitstream.h
../libsmacker-1.1.1r35/smk_hufftree.c
../libsmacker-1.1.1r35/smk_hufftree.h
../libsmacker-1.1.1r35/smk_malloc.h)

find_package(Qt5 COMPONENTS Widgets)
add_definitions(-DMECHVM -DUSE_QT)
add_executable(mechvm ${SOURCE_FILES})
target_link_libraries(mechvm /home/bjoern/libinstrumentation-code/libinstrumentation.so
/home/bjoern/resil-code/projects/cmake/ILU/libilu.so
/home/bjoern/resil-code/projects/cmake/ILUT/libilut.so
/home/bjoern/resil-code/projects/cmake/ResIL/libresil.so
libGL.so libGLU.so libSDL2.so libGLEW.so libX11.so
/usr/lib64/libSDL2_ttf-2.0.so.0
Qt5::Widgets)
target_include_directories(mechvm PUBLIC /home/bjoern/libinstrumentation-code/include)
target_include_directories(mechvm PUBLIC /home/bjoern/resil-code/include)
target_include_directories(mechvm PUBLIC /usr/include/SDL2)
