mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
470 B
24 lines
470 B
|
14 years ago
|
# - Find SDL2
|
||
|
|
#
|
||
|
|
# This module defines:
|
||
|
|
#
|
||
|
|
# SDL2_FOUND - True if SDL2 library is found
|
||
|
|
# SDL2_LIBRARY - SDL2 dynamic library
|
||
|
|
# SDL2_INCLUDE_DIR - Include dir
|
||
|
|
#
|
||
|
|
|
||
|
|
# Library
|
||
|
|
find_library(SDL2_LIBRARY SDL2)
|
||
|
|
|
||
|
|
# Include dir
|
||
|
|
find_path(SDL2_INCLUDE_DIR
|
||
|
|
NAMES SDL.h SDL_scancode.h
|
||
|
|
PATH_SUFFIXES SDL2
|
||
|
|
)
|
||
|
|
|
||
|
|
include(FindPackageHandleStandardArgs)
|
||
|
|
find_package_handle_standard_args("SDL2" DEFAULT_MSG
|
||
|
|
SDL2_LIBRARY
|
||
|
|
SDL2_INCLUDE_DIR
|
||
|
|
)
|