Skip to content

Commit

Permalink
refactor + fix dir output
Browse files Browse the repository at this point in the history
  • Loading branch information
OhhhZenix committed Feb 9, 2025
1 parent 7658c9c commit 97b8d91
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# set the output directory for built objects.
# This makes sure that the dynamic library goes into the build directory automatically.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")

# temporarily fix https://github.com/libsdl-org/SDL/issues/10250
if(MSVC)
enable_language(ASM_MASM)
endif()

# Create the project
project(WaveRush)

Expand Down Expand Up @@ -38,11 +48,6 @@ set(SDL_EXAMPLES OFF CACHE INTERNAL "")
set(SDLIMAGE_TESTS OFF CACHE INTERNAL "")
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")

# temporarily fix https://github.com/libsdl-org/SDL/issues/10250
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_Embedded "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_ProgramDatabase "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_EditAndContinue "")

# Bring content to scope
FetchContent_MakeAvailable(glm sdl sdl_image)

Expand Down

0 comments on commit 97b8d91

Please sign in to comment.