Files

14 lines
703 B
CMake

# The 32-bit audio host (the game's FMOD DLLs are x86). Built on its own:
# cmake -S tools/audio_host -B build_audio32 -A Win32 && cmake --build build_audio32 --config Release
# then audio_host.exe goes next to noita_gpu.exe (and into demo/).
cmake_minimum_required(VERSION 3.20)
project(audio_host CXX)
set(CMAKE_CXX_STANDARD 17)
add_executable(audio_host audio_host.cpp)
target_include_directories(audio_host PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
if(MSVC)
target_compile_options(audio_host PRIVATE /W4)
target_compile_definitions(audio_host PRIVATE _CRT_SECURE_NO_WARNINGS)
set_property(TARGET audio_host PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()