Skip to content

Commit

Permalink
use CXX17 on tests binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Jul 24, 2024
1 parent 29161c4 commit f85c21e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions tests/integration/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ target_link_libraries(sdlhelloworld PRIVATE
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
${SDL_IMAGE_LIBRARIES}
fifechan_sdl
fifechan
fifechan::fifechan
fifechan::fifechan_sdl
)

set_target_properties(sdlhelloworld PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)

show_build_target_properties(sdlhelloworld)

# Define the source and destination paths
set(IMAGE_SOURCE "${PROJECT_SOURCE_DIR}/tests/resources/fixedfont.bmp")
set(IMAGE_DESTINATION "$<TARGET_FILE_DIR:sdlhelloworld>/fixedfont.bmp")
Expand All @@ -47,6 +54,13 @@ target_link_libraries(sdlwidgets PRIVATE
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
# SDL2_image
${SDL_IMAGE_LIBRARIES}
fifechan_sdl
fifechan
fifechan::fifechan
fifechan::fifechan_sdl
)

set_target_properties(sdlwidgets PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)

show_build_target_properties(sdlwidgets)

0 comments on commit f85c21e

Please sign in to comment.