${SRCDIR}/Math/Frustum.cpp
${SRCDIR}/Math/Quaternions.cpp
${SRCDIR}/Menu/Menu.cpp
- ${SRCDIR}/Objects/Objects.cpp
+ ${SRCDIR}/Objects/Object.cpp
${SRCDIR}/Objects/Person.cpp
${SRCDIR}/Objects/Weapons.cpp
${SRCDIR}/User/Account.cpp
${SRCDIR}/Math/Quaternions.hpp
${SRCDIR}/Math/Random.hpp
${SRCDIR}/Menu/Menu.hpp
- ${SRCDIR}/Objects/Objects.hpp
+ ${SRCDIR}/Objects/Object.hpp
${SRCDIR}/Objects/Person.hpp
${SRCDIR}/Objects/Weapons.hpp
${SRCDIR}/Thirdparty/optionparser.h
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)
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