sdl2-config.cmake.in
changeset 13683 60f1e9fb5957
parent 13543 ef2d5382a887
child 13729 89a457159af4
equal deleted inserted replaced
13682:bd45c7649f7b 13683:60f1e9fb5957
    20 
    20 
    21   add_library(SDL2::SDL2 SHARED IMPORTED)
    21   add_library(SDL2::SDL2 SHARED IMPORTED)
    22   set_target_properties(SDL2::SDL2 PROPERTIES
    22   set_target_properties(SDL2::SDL2 PROPERTIES
    23     INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
    23     INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
    24     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    24     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    25     IMPORTED_LOCATION "@libdir@/libSDL2.so"
    25     IMPORTED_LOCATION "@libdir@/${CMAKE_SHARED_LIBRARY_PREFIX}SDL2${CMAKE_SHARED_LIBRARY_SUFFIX}"
    26     INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS}")
    26     INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS}")
    27 
    27 
    28   add_library(SDL2::SDL2-static STATIC IMPORTED)
    28   add_library(SDL2::SDL2-static STATIC IMPORTED)
    29   set_target_properties(SDL2::SDL2-static PROPERTIES
    29   set_target_properties(SDL2::SDL2-static PROPERTIES
    30     INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
    30     INTERFACE_INCLUDE_DIRECTORIES "@includedir@/SDL2"
    31     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    31     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    32     IMPORTED_LOCATION "@libdir@/libSDL2.a"
    32     IMPORTED_LOCATION "@libdir@/${CMAKE_STATIC_LIBRARY_PREFIX}SDL2${CMAKE_STATIC_LIBRARY_SUFFIX}"
    33     INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS_STATIC}")
    33     INTERFACE_LINK_LIBRARIES "${SDL2_EXTRA_LINK_FLAGS_STATIC}")
    34 
    34 
    35   add_library(SDL2::SDL2main STATIC IMPORTED)
    35   add_library(SDL2::SDL2main STATIC IMPORTED)
    36   set_target_properties(SDL2::SDL2main PROPERTIES
    36   set_target_properties(SDL2::SDL2main PROPERTIES
    37     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    37     IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    38     IMPORTED_LOCATION "@libdir@/libSDL2main.a")
    38     IMPORTED_LOCATION "@libdir@/${CMAKE_STATIC_LIBRARY_PREFIX}SDL2main${CMAKE_STATIC_LIBRARY_SUFFIX}")
    39 endif()
    39 endif()