You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OutRun/CMakeLists.txt

62 lines
1.7 KiB

# Configure with [fxsdk build-cg], which provide the
# toolchain file and module path of the fxSDK
cmake_minimum_required(VERSION 3.15)
project(MyAddin)
include(GenerateG3A)
include(Fxconv)
find_package(Gint 2.7.0 REQUIRED)
find_package(LibProf 2.4 REQUIRED)
set(SOURCES
src/main.cc
src/src/segment.cc
src/src/camera.cc
src/src/circuit.cc
src/src/drawstuff.cc
src/src/clouds.cc
src/src/cars.cc
)
set(ASSETS_cg
assets-cg/traffic/car1.png
assets-cg/traffic/car2.png
assets-cg/traffic/car3.png
assets-cg/traffic/car4.png
assets-cg/traffic/car5.png
assets-cg/traffic/car6.png
assets-cg/traffic/car7.png
assets-cg/traffic/car8.png
assets-cg/trees/tree1.png
assets-cg/trees/tree2.png
assets-cg/trees/tree3.png
assets-cg/trees/tree4.png
assets-cg/trees/tree5.png
assets-cg/trees/tree6.png
assets-cg/player/player.png
assets-cg/clouds/sky1.png
assets-cg/clouds/sky2.png
assets-cg/clouds/sky3.png
assets-cg/backgrnd/mountain.png
assets-cg/backgrnd/treeline.png
assets-cg/billboard/leftturn.png
assets-cg/billboard/rightturn.png
assets-cg/billboard/uphill.png
assets-cg/billboard/downhill.png
assets-cg/fonts/speedfont.png
assets-cg/hud/speedhud.png
)
fxconv_declare_assets(${ASSETS_cg} WITH_METADATA)
add_executable(myaddin ${SOURCES} ${ASSETS_${FXSDK_PLATFORM}})
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -std=c++11 -c -fno-rtti -fno-use-cxa-atexit -fpermissive)
target_link_libraries(myaddin LibProf::LibProf Gint::Gint -lustl -lc)
target_link_options(myaddin PRIVATE -Wl,-Map=Build_Addin.map)
if("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
generate_g3a(TARGET myaddin OUTPUT "OutRunFP.g3a" VERSION 00.150.0000
NAME "OutRunFP" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
endif()