]> git.jsancho.org Git - lugaru.git/blobdiff - CMakeLists.txt
Added a line to enforce inclusion of C99 support headers for MSVC
[lugaru.git] / CMakeLists.txt
index d2a8c2994ecb927290a90aa16b46124da26aaccd..fe7c8b683def7a80e24aa7414edb7c8ae78c7b5f 100644 (file)
@@ -191,6 +191,10 @@ if(WIN32)
        include_directories("${DEPDIR}/OpenGL")
 endif(WIN32)
 
+if(MSVC) # More Visual Studio annoyances
+       include_directories("${DEPDIR}/msinttypes")
+endif(MSVC)
+
 option (LUGARU_FORCE_INTERNAL_OPENAL "Force internal libOpenAL, even if there's a system version" False)
 if (NOT LUGARU_FORCE_INTERNAL_OPENAL)
        find_package(OpenAL REQUIRED)
@@ -538,7 +542,13 @@ else(WIN32)
        endif(APPLE AND LUGARU_HAS_INTERNAL_SDL)
 endif(WIN32)
 
+if(NOT APPLE)
 install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})
+endif(NOT APPLE)
+
+if(APPLE)
+install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${APPS_ROOT})
+endif(APPLE)
 
 if (LUGARU_MISSING_DEPS)
     message(STATUS "Using our copy of these libs: ${LUGARU_MISSING_DEPS}")