mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-09-03 12:29:38 +02:00
160 lines
5.7 KiB
CMake
160 lines
5.7 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(SpaceCadetPinball)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(SDL2_DIR "${CMAKE_CURRENT_LIST_DIR}/Libs/SDL2-2.0.16")
|
|
set(SDL2_mixer_DIR "${CMAKE_CURRENT_LIST_DIR}/Libs/SDL2_mixer-2.0.4")
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
FIND_PACKAGE(SDL2_mixer REQUIRED)
|
|
|
|
|
|
include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_MIXER_INCLUDE_DIRS})
|
|
|
|
set(SOURCE_FILES
|
|
SpaceCadetPinball/control.cpp
|
|
SpaceCadetPinball/control.h
|
|
SpaceCadetPinball/fullscrn.cpp
|
|
SpaceCadetPinball/fullscrn.h
|
|
SpaceCadetPinball/gdrv.cpp
|
|
SpaceCadetPinball/gdrv.h
|
|
SpaceCadetPinball/high_score.cpp
|
|
SpaceCadetPinball/high_score.h
|
|
SpaceCadetPinball/loader.cpp
|
|
SpaceCadetPinball/loader.h
|
|
SpaceCadetPinball/maths.cpp
|
|
SpaceCadetPinball/maths.h
|
|
SpaceCadetPinball/memory.cpp
|
|
SpaceCadetPinball/memory.h
|
|
SpaceCadetPinball/midi.cpp
|
|
SpaceCadetPinball/midi.h
|
|
SpaceCadetPinball/nudge.cpp
|
|
SpaceCadetPinball/nudge.h
|
|
SpaceCadetPinball/objlist_class.h
|
|
SpaceCadetPinball/options.cpp
|
|
SpaceCadetPinball/options.h
|
|
SpaceCadetPinball/partman.cpp
|
|
SpaceCadetPinball/partman.h
|
|
SpaceCadetPinball/pb.cpp
|
|
SpaceCadetPinball/pb.h
|
|
SpaceCadetPinball/pch.cpp
|
|
SpaceCadetPinball/pch.h
|
|
SpaceCadetPinball/pinball.cpp
|
|
SpaceCadetPinball/pinball.h
|
|
SpaceCadetPinball/proj.cpp
|
|
SpaceCadetPinball/proj.h
|
|
SpaceCadetPinball/render.cpp
|
|
SpaceCadetPinball/render.h
|
|
SpaceCadetPinball/resource.h
|
|
SpaceCadetPinball/score.cpp
|
|
SpaceCadetPinball/score.h
|
|
SpaceCadetPinball/Sound.cpp
|
|
SpaceCadetPinball/Sound.h
|
|
SpaceCadetPinball/SpaceCadetPinball.cpp
|
|
SpaceCadetPinball/TBall.cpp
|
|
SpaceCadetPinball/TBall.h
|
|
SpaceCadetPinball/TBlocker.cpp
|
|
SpaceCadetPinball/TBlocker.h
|
|
SpaceCadetPinball/TBumper.cpp
|
|
SpaceCadetPinball/TBumper.h
|
|
SpaceCadetPinball/TCircle.cpp
|
|
SpaceCadetPinball/TCircle.h
|
|
SpaceCadetPinball/TCollisionComponent.cpp
|
|
SpaceCadetPinball/TCollisionComponent.h
|
|
SpaceCadetPinball/TComponentGroup.cpp
|
|
SpaceCadetPinball/TComponentGroup.h
|
|
SpaceCadetPinball/TDemo.cpp
|
|
SpaceCadetPinball/TDemo.h
|
|
SpaceCadetPinball/TDrain.cpp
|
|
SpaceCadetPinball/TDrain.h
|
|
SpaceCadetPinball/TEdgeBox.cpp
|
|
SpaceCadetPinball/TEdgeBox.h
|
|
SpaceCadetPinball/TEdgeManager.cpp
|
|
SpaceCadetPinball/TEdgeManager.h
|
|
SpaceCadetPinball/TEdgeSegment.cpp
|
|
SpaceCadetPinball/TEdgeSegment.h
|
|
SpaceCadetPinball/TFlagSpinner.cpp
|
|
SpaceCadetPinball/TFlagSpinner.h
|
|
SpaceCadetPinball/TFlipper.cpp
|
|
SpaceCadetPinball/TFlipper.h
|
|
SpaceCadetPinball/TFlipperEdge.cpp
|
|
SpaceCadetPinball/TFlipperEdge.h
|
|
SpaceCadetPinball/TGate.cpp
|
|
SpaceCadetPinball/TGate.h
|
|
SpaceCadetPinball/THole.cpp
|
|
SpaceCadetPinball/THole.h
|
|
SpaceCadetPinball/timer.cpp
|
|
SpaceCadetPinball/timer.h
|
|
SpaceCadetPinball/TKickback.cpp
|
|
SpaceCadetPinball/TKickback.h
|
|
SpaceCadetPinball/TKickout.cpp
|
|
SpaceCadetPinball/TKickout.h
|
|
SpaceCadetPinball/TLight.cpp
|
|
SpaceCadetPinball/TLight.h
|
|
SpaceCadetPinball/TLightBargraph.cpp
|
|
SpaceCadetPinball/TLightBargraph.h
|
|
SpaceCadetPinball/TLightGroup.cpp
|
|
SpaceCadetPinball/TLightGroup.h
|
|
SpaceCadetPinball/TLightRollover.cpp
|
|
SpaceCadetPinball/TLightRollover.h
|
|
SpaceCadetPinball/TLine.cpp
|
|
SpaceCadetPinball/TLine.h
|
|
SpaceCadetPinball/TOneway.cpp
|
|
SpaceCadetPinball/TOneway.h
|
|
SpaceCadetPinball/TPinballComponent.cpp
|
|
SpaceCadetPinball/TPinballComponent.h
|
|
SpaceCadetPinball/TPinballTable.cpp
|
|
SpaceCadetPinball/TPinballTable.h
|
|
SpaceCadetPinball/TPlunger.cpp
|
|
SpaceCadetPinball/TPlunger.h
|
|
SpaceCadetPinball/TPopupTarget.cpp
|
|
SpaceCadetPinball/TPopupTarget.h
|
|
SpaceCadetPinball/TRamp.cpp
|
|
SpaceCadetPinball/TRamp.h
|
|
SpaceCadetPinball/TRollover.cpp
|
|
SpaceCadetPinball/TRollover.h
|
|
SpaceCadetPinball/TSink.cpp
|
|
SpaceCadetPinball/TSink.h
|
|
SpaceCadetPinball/TSoloTarget.cpp
|
|
SpaceCadetPinball/TSoloTarget.h
|
|
SpaceCadetPinball/TSound.cpp
|
|
SpaceCadetPinball/TSound.h
|
|
SpaceCadetPinball/TTableLayer.cpp
|
|
SpaceCadetPinball/TTableLayer.h
|
|
SpaceCadetPinball/TTextBox.cpp
|
|
SpaceCadetPinball/TTextBox.h
|
|
SpaceCadetPinball/TTextBoxMessage.cpp
|
|
SpaceCadetPinball/TTextBoxMessage.h
|
|
SpaceCadetPinball/TTimer.cpp
|
|
SpaceCadetPinball/TTimer.h
|
|
SpaceCadetPinball/TTripwire.cpp
|
|
SpaceCadetPinball/TTripwire.h
|
|
SpaceCadetPinball/TWall.cpp
|
|
SpaceCadetPinball/TWall.h
|
|
SpaceCadetPinball/winmain.cpp
|
|
SpaceCadetPinball/winmain.h
|
|
SpaceCadetPinball/zdrv.cpp
|
|
SpaceCadetPinball/zdrv.h
|
|
SpaceCadetPinball/imconfig.h
|
|
SpaceCadetPinball/imgui_internal.h
|
|
SpaceCadetPinball/imgui.cpp
|
|
SpaceCadetPinball/imgui.h
|
|
SpaceCadetPinball/imgui_sdl.cpp
|
|
SpaceCadetPinball/imgui_sdl.h
|
|
SpaceCadetPinball/imgui_draw.cpp
|
|
SpaceCadetPinball/imgui_widgets.cpp
|
|
SpaceCadetPinball/imgui_tables.cpp
|
|
SpaceCadetPinball/imgui_demo.cpp
|
|
SpaceCadetPinball/imgui_impl_sdl.cpp
|
|
SpaceCadetPinball/imgui_impl_sdl.h
|
|
SpaceCadetPinball/imstb_textedit.h
|
|
SpaceCadetPinball/imstb_rectpack.h
|
|
SpaceCadetPinball/imstb_truetype.h
|
|
)
|
|
|
|
add_executable(SpaceCadetPinball ${SOURCE_FILES})
|
|
|
|
target_link_libraries(SpaceCadetPinball ${SDL2_LIBRARIES} ${SDL2_MIXER_LIBRARIES})
|