X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=0feb4b9cc98130dc2986e9b1596457988d1a2e2b;hb=d46a3cd0802e4a694165ef2da46d9e25558178ab;hp=4cc0faa02ed9850c15657be4de74d7327067d825;hpb=e1b77b83ecf55f4ed9a02aeb2b699e58c3128eb6;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cc0faa..0feb4b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ project(lugaru) -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.0) cmake_policy(SET CMP0004 OLD) include(FindPkgConfig) @@ -173,7 +173,13 @@ else(WIN32) find_package(OpenAL REQUIRED) endif(WIN32) -find_package(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) @@ -295,5 +301,6 @@ install(FILES ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/RELEASE-NOTES.md ${CMAKE_SOURCE_DIR}/Docs/DEVTOOLS.txt ${CMAKE_SOURCE_DIR}/Docs/README.Empire.txt + ${CMAKE_SOURCE_DIR}/Docs/README.SevenTasks.txt ${CMAKE_SOURCE_DIR}/Docs/README.Temple.txt DESTINATION ${LUGARU_DOCDIR})