diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-03 06:32:00 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-03 06:32:00 (GMT) |
commit | a0ae5124246cfad9fc234f82248783d665c0e9dc (patch) | |
tree | 01bfde7902df9dcea3a17cc0488f8926ef901b99 /src/cmake/modules/FindSDL.cmake | |
parent | 8a2cbf2c289b46e2f3458d895f021ea79ac04d37 (diff) | |
download | mxe-a0ae5124246cfad9fc234f82248783d665c0e9dc.zip mxe-a0ae5124246cfad9fc234f82248783d665c0e9dc.tar.gz mxe-a0ae5124246cfad9fc234f82248783d665c0e9dc.tar.bz2 |
move cmake modules to src/cmake/modules
Diffstat (limited to 'src/cmake/modules/FindSDL.cmake')
-rw-r--r-- | src/cmake/modules/FindSDL.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmake/modules/FindSDL.cmake b/src/cmake/modules/FindSDL.cmake new file mode 100644 index 0000000..f426494 --- /dev/null +++ b/src/cmake/modules/FindSDL.cmake @@ -0,0 +1,13 @@ +# This file is part of MXE. +# See index.html for further information. + +if(NOT PKG_CONFIG_FOUND) + find_package(PkgConfig REQUIRED) +endif() + +pkg_check_modules(SDL sdl) + +# for backward compatiblity +set(SDL_LIBRARY ${SDL_LIBRARIES}) +set(SDL_INCLUDE_DIR ${SDL_INCLUDE_DIRS}) +set(SDL_VERSION_STRING ${SDL_VERSION}) |