cmake_minimum_required(VERSION 3.25) project(empress_tip LANGUAGES CXX) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(REXGLUE_HOST_TARGET empress-tip) option(REXGLUE_ENABLE_TEXTURES "Enable texture dumping and replacement" ON) option(REXGLUE_ENABLE_SHADERS "Enable shader debugging and replacement" ON) include(generated/rexglue.cmake) set(EMPRESS_SOURCES src/main.cpp src/tip_engine/CursorHooks.cpp src/tip_engine/hooks.cpp src/tip_engine/GraphicsHooks.cpp src/tip_engine/Overlays/Fps.cpp src/tip_engine/Overlays/QuitMenu.cpp src/tip_engine/Overlays/TiPTools.cpp src/tip_engine/Overlays/TiPTools/SpawnMenu.cpp src/tip_engine/Overlays/TiPTools/GraphicsMenu.cpp src/tip_engine/Overlays/TiPTools/UpscalingMenu.cpp src/tip_engine/Overlays/TiPTools/SettingsMenu.cpp src/tip_engine/Overlays/TiPTools/PinataMenu.cpp src/tip_engine/Overlays/TiPTools/PlantMenu.cpp src/tip_engine/Overlays/TiPTools/PlayerMenu.cpp src/tip_engine/Overlays/TiPTools/RuffianMenu.cpp src/tip_engine/Overlays/TiPTools/ShovelMenu.cpp src/tip_engine/CRT/math.cpp src/tip_engine/CRT/assetman.cpp ) if(WIN32) list(APPEND EMPRESS_SOURCES icon/app.rc) add_executable(empress-tip WIN32 ${EMPRESS_SOURCES}) else() add_executable(empress-tip ${EMPRESS_SOURCES}) endif() target_compile_definitions(empress-tip PRIVATE EMPRESS_BRAND="Empress") rexglue_setup_target(empress-tip GPU_PLUGINS xenos) if(UNIX AND NOT APPLE) add_custom_command(TARGET empress-tip POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ VERBATIM ) endif()