sdl2-config.cmake.in
author Ryan C. Gordon
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.
     1 # sdl2 cmake project-config input for ./configure scripts
     2 
     3 set(prefix "@prefix@") 
     4 set(exec_prefix "@exec_prefix@")
     5 set(libdir "@libdir@")
     6 set(PACKAGE_VERSION "@SDL_VERSION@")
     7 set(SDL2_VERSION "@SDL_VERSION@")
     8 set(SDL2_PREFIX "@prefix@")
     9 set(SDL2_EXEC_PREFIX "@prefix@")
    10 set(SDL2_LIBDIR "@libdir@")
    11 set(SDL2_INCLUDE_DIRS "@includedir@/SDL2")
    12 set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} @SDL_RLD_FLAGS@ @SDL_LIBS@")
    13 string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)