Skip to content

Commit

Permalink
XP Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Feb 5, 2025
1 parent facc6a4 commit 51729f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- '.github/workflows/**'
branches:
- master
- sdl
- xp-test
workflow_dispatch:

jobs:
Expand Down
15 changes: 9 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ project(8ChocChip
LANGUAGES CXX
VERSION 0.1)

if(CMAKE_HOST_WIN32)
add_definitions(-D_WIN32_WINNT=0x0501 -DWINVER=0x0501)
set(CMAKE_CXX_STANDARD 98)
set_property(TARGET 8ChocChip PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded")
set(libname "libconfig")
else()
set(libname "config")
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
Expand All @@ -18,12 +27,6 @@ add_executable(8ChocChip)
add_subdirectory(dependencies)
add_subdirectory(src)

if(CMAKE_HOST_WIN32)
set(libname "libconfig")
else()
set(libname "config")
endif()

target_link_libraries(8ChocChip PRIVATE SDL3::SDL3 SDL3_ttf::SDL3_ttf ${libname}++)
target_compile_definitions(8ChocChip PUBLIC SDL_MAIN_USE_CALLBACKS)

Expand Down

0 comments on commit 51729f4

Please sign in to comment.