@@ -24,15 +24,19 @@ ADD_LIBRARY(tiny_ui
2424 src/sdl2_iodevice.h
2525 src/sdl2_iodevice.cpp
2626)
27- target_link_libraries (tiny_ui $<IF :$<TARGET_EXISTS :SDL2 ::SDL2 >,SDL2 ::SDL2 ,SDL2 ::SDL2 -static >
27+ target_link_libraries (tiny_ui PRIVATE
28+ $<IF :$<TARGET_EXISTS :SDL2 ::SDL2 >,SDL2 ::SDL2 ,SDL2 ::SDL2 -static >
2829 $<IF :$<TARGET_EXISTS :SDL2_image ::SDL2_image >,SDL2_image ::SDL2_image ,SDL2_image ::SDL2_image -static >
29- $<IF :$<TARGET_EXISTS :SDL2_ttf ::SDL2_ttf >,SDL2_ttf ::SDL2_ttf ,SDL2_ttf ::SDL2_ttf -static )
30+ $<IF :$<TARGET_EXISTS :SDL2_ttf ::SDL2_ttf >,SDL2_ttf ::SDL2_ttf ,SDL2_ttf ::SDL2_ttf -static > )
3031
3132if ( TINY_UI_SAMPLES)
3233 ADD_EXECUTABLE (tiny_ui_sample
3334 samples/main.cpp
3435 )
35- target_link_libraries (tiny_ui_sample tiny_ui $<IF :$<TARGET_EXISTS :SDL2 ::SDL2 >,SDL2 ::SDL2 ,SDL2 ::SDL2 -static >
36- $<IF :$<TARGET_EXISTS :SDL2_image ::SDL2_image >,SDL2_image ::SDL2_image ,SDL2_image ::SDL2_image -static >
37- $<IF :$<TARGET_EXISTS :SDL2_ttf ::SDL2_ttf >,SDL2_ttf ::SDL2_ttf ,SDL2_ttf ::SDL2_ttf -static )
36+ target_link_libraries (tiny_ui_sample
37+ tiny_ui
38+ $<IF :$<TARGET_EXISTS :SDL2 ::SDL2 >,SDL2 ::SDL2 ,SDL2 ::SDL2 -static >
39+ $<IF :$<TARGET_EXISTS :SDL2_image ::SDL2_image >,SDL2_image ::SDL2_image ,SDL2_image ::SDL2_image -static >
40+ $<IF :$<TARGET_EXISTS :SDL2_ttf ::SDL2_ttf >,SDL2_ttf ::SDL2_ttf ,SDL2_ttf ::SDL2_ttf -static >)
41+
3842endif ()
0 commit comments