sdl2-config.cmake.in
author Ryan C. Gordon <icculus@icculus.org>
Fri, 14 Feb 2020 13:37:32 -0500
changeset 13520 d62544e5fa7a
parent 10474 e723c663ba58
child 13542 27cf93d543ca
permissions -rw-r--r--
cmake: Add PACKAGE_VERSION and SDL2_VERSION to sdl2-config.cmake.in

Fixes Bugzilla #4970.
slouken@9785
     1
# sdl2 cmake project-config input for ./configure scripts
slouken@9785
     2
slouken@9785
     3
set(prefix "@prefix@") 
slouken@9785
     4
set(exec_prefix "@exec_prefix@")
icculus@9978
     5
set(libdir "@libdir@")
icculus@13520
     6
set(PACKAGE_VERSION "@SDL_VERSION@")
icculus@13520
     7
set(SDL2_VERSION "@SDL_VERSION@")
slouken@9785
     8
set(SDL2_PREFIX "@prefix@")
slouken@9785
     9
set(SDL2_EXEC_PREFIX "@prefix@")
slouken@9785
    10
set(SDL2_LIBDIR "@libdir@")
slouken@9785
    11
set(SDL2_INCLUDE_DIRS "@includedir@/SDL2")
slouken@9785
    12
set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} @SDL_RLD_FLAGS@ @SDL_LIBS@")
slouken@10474
    13
string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)