Pixels, Surfaces, Renderer, oh my...
This commit is contained in:
+9
-5
@@ -5,10 +5,14 @@ project(hdk-sdl
|
||||
LANGUAGES CXX
|
||||
DESCRIPTION "header only shared_ptr wrappers around SDL3 structs and functions"
|
||||
)
|
||||
|
||||
# Note: The src/ directory contains Doxygen documentation-only .cpp files.
|
||||
# This is a header-only library; src/ files are not compiled into any targets.
|
||||
|
||||
# hdk-sdl OPTIONS
|
||||
option(HDK_SDL_BUILD_TESTS "Build hdk-sdl tests" ${HDK_BUILD_TESTS})
|
||||
option(HDK_SDL_BUILD_EXAMPLES "Build hdk-sdl examples" ${HDK_BUILD_EXAMPLES})
|
||||
if(HDK_SDL_BUILD_EXAMPLES)
|
||||
option(HDK_SDL_TESTS "Build hdk-sdl tests" ${HDK_TESTS})
|
||||
option(HDK_SDL_EXAMPLES "Build hdk-sdl examples" ${HDK_EXAMPLES})
|
||||
if(HDK_SDL_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
@@ -21,7 +25,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
SDL3
|
||||
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
|
||||
GIT_TAG release-3.4.4
|
||||
GIT_TAG release-3.4.8
|
||||
)
|
||||
FetchContent_MakeAvailable(SDL3)
|
||||
|
||||
@@ -30,7 +34,7 @@ target_link_libraries(hdk-sdl INTERFACE SDL3::SDL3 hdk-grid)
|
||||
target_include_directories(hdk-sdl INTERFACE ${SDL3_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
target_compile_features(hdk-sdl INTERFACE cxx_std_17)
|
||||
|
||||
if(HDK_SDL_BUILD_TESTS)
|
||||
if(HDK_SDL_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user