mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-30 15:36:57 +08:00
15 lines
362 B
CMake
Executable File
15 lines
362 B
CMake
Executable File
find_path(SDL2_INCLUDE_DIR
|
|
NAMES SDL2/SDL.h
|
|
HINTS SDL2
|
|
PATHS $ENV{HOME}/sdl2/include)
|
|
|
|
find_library(SDL2_LIBRARY
|
|
NAMES SDL2
|
|
PATHS $ENV{HOME}/sdl2/lib/x86)
|
|
|
|
set(SDL2_LIBRARIES ${SDL2_LIBRARY})
|
|
set(SDL2_INCLUDE_DIRS ${SDL2_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(SDL2 DEFAULT_MSG SDL2_LIBRARY SDL2_INCLUDE_DIR) |