diff options
Diffstat (limited to 'src/cmake')
-rw-r--r-- | src/cmake/FindSDL.cmake | 2 | ||||
-rw-r--r-- | src/cmake/FindSDL_mixer.cmake | 13 | ||||
-rw-r--r-- | src/cmake/FindSDL_net.cmake | 13 | ||||
-rw-r--r-- | src/cmake/FindSDL_ttf.cmake | 13 |
4 files changed, 39 insertions, 2 deletions
diff --git a/src/cmake/FindSDL.cmake b/src/cmake/FindSDL.cmake index 60eccd5..6ed4779 100644 --- a/src/cmake/FindSDL.cmake +++ b/src/cmake/FindSDL.cmake @@ -8,5 +8,3 @@ pkg_check_modules(SDL sdl) set(SDL_LIBRARY ${SDL_LIBRARIES}) set(SDL_INCLUDE_DIR ${SDL_INCLUDE_DIRS}) set(SDL_VERSION_STRING ${SDL_VERSION}) - -#message(FATAL_ERROR "SDL_VERSION_STRING ${SDL_VERSION_STRING}") diff --git a/src/cmake/FindSDL_mixer.cmake b/src/cmake/FindSDL_mixer.cmake new file mode 100644 index 0000000..1e27b88 --- /dev/null +++ b/src/cmake/FindSDL_mixer.cmake @@ -0,0 +1,13 @@ +if(NOT PKG_CONFIG_FOUND) + find_package(PkgConfig REQUIRED) +endif() + +pkg_check_modules(SDL_MIXER SDL_mixer) + +#compatiblity +set(SDL_MIXER_VERSION_STRING ${SDL_MIXER_VERSION}) + +# for backward compatiblity +set(SDLMIXER_LIBRARY ${SDL_MIXER_LIBRARIES}) +set(SDLMIXER_INCLUDE_DIR ${SDL_MIXER_INCLUDE_DIRS}) +set(SDLMIXER_FOUND ${SDL_MIXER_FOUND}) diff --git a/src/cmake/FindSDL_net.cmake b/src/cmake/FindSDL_net.cmake new file mode 100644 index 0000000..f80663d --- /dev/null +++ b/src/cmake/FindSDL_net.cmake @@ -0,0 +1,13 @@ +if(NOT PKG_CONFIG_FOUND) + find_package(PkgConfig REQUIRED) +endif() + +pkg_check_modules(SDL_NET SDL_net) + +#compatiblity +set(SDL_NET_VERSION_STRING ${SDL_NET_VERSION}) + +# for backward compatiblity +set(SDLNET_LIBRARY ${SDL_NET_LIBRARIES}) +set(SDLNET_INCLUDE_DIR ${SDL_NET_INCLUDE_DIRS}) +set(SDLNET_FOUND ${SDL_NET_FOUND}) diff --git a/src/cmake/FindSDL_ttf.cmake b/src/cmake/FindSDL_ttf.cmake new file mode 100644 index 0000000..2e5d679 --- /dev/null +++ b/src/cmake/FindSDL_ttf.cmake @@ -0,0 +1,13 @@ +if(NOT PKG_CONFIG_FOUND) + find_package(PkgConfig REQUIRED) +endif() + +pkg_check_modules(SDL_TTF SDL_ttf) + +#compatiblity +set(SDL_TTF_VERSION_STRING ${SDL_TTF_VERSION}) + +# for backward compatiblity +set(SDLTTF_LIBRARY ${SDL_TTF_LIBRARIES}) +set(SDLTTF_INCLUDE_DIR ${SDL_TTF_INCLUDE_DIRS}) +set(SDLTTF_FOUND ${SDL_TTF_FOUND}) |