diff --git a/CMakeLists.txt b/CMakeLists.txt index a2e453d3e..2fe699fb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ if (SDL_SHARED OR SDL_STATIC) list(APPEND CEN_TARGETS centurion) target_link_libraries(centurion INTERFACE centurion-headers-only + $<$:SDL2::SDL2main> $,SDL2::SDL2,SDL2::SDL2-static> $,SDL2_image::SDL2_image,SDL2_image::SDL2_image-static> $,SDL2_mixer::SDL2_mixer,SDL2_mixer::SDL2_mixer-static> @@ -70,6 +71,7 @@ if (SDL_STATIC) list(APPEND CEN_TARGETS centurion-static) target_link_libraries(centurion-static INTERFACE centurion-headers-only + $<$:SDL2::SDL2main> SDL2::SDL2-static SDL2_image::SDL2_image-static SDL2_mixer::SDL2_mixer-static