X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=1c55e5798acd19bf4242b055d7136b49f2802a4c;hb=11fc7bb36280c27d231753a9b3b3e95210351144;hp=044544f13406cdf5fa4c2ec44fb7e6eb9f107b62;hpb=c7558a9adf78f1cef9d8652210223bdded6b9571;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 044544f..1c55e57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,9 +173,13 @@ else(WIN32) find_package(OpenAL REQUIRED) endif(WIN32) -# Not all distros provide sdl2-config.cmake yet -#find_package(sdl2 REQUIRED) -pkg_check_modules(SDL2 sdl2 REQUIRED) +# macOS has problems with using pkgconfig to find SDL2 +if(APPLE) + find_package(sdl2 REQUIRED) +else(APPLE) + pkg_check_modules(SDL2 sdl2 REQUIRED) +endif(APPLE) + find_package(PNG REQUIRED) find_package(JPEG REQUIRED) find_package(ZLIB REQUIRED) @@ -232,7 +236,7 @@ endif(LINUX) if(APPLE) set(LUGARU_APP_ROOT ${CMAKE_INSTALL_PREFIX}/Lugaru.app) set(LUGARU_BINDIR ${LUGARU_APP_ROOT}/Contents/MacOS) - set(LUGARU_RESDIR ${LUGARU_APP_ROOT}/Resources) + set(LUGARU_RESDIR ${LUGARU_APP_ROOT}/Contents/Resources) endif(APPLE) # Actual installation instructions