X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=5b0d0ab163cd5ab328a10cb1e93cc2b58fdbb6bb;hb=72621d52ae69fa4ecb4329437810d71860ae3ebc;hp=d2a8c2994ecb927290a90aa16b46124da26aaccd;hpb=c608c3e5c837583b23f517fa4cb209c2b53e39f3;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d2a8c29..5b0d0ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ if(MINGW) endif(MINGW) if(APPLE) - set(CMAKE_OSX_ARCHITECTURES "i386;ppc" CACHE STRING "Build architectures for OSX") + set(CMAKE_OSX_ARCHITECTURES "i386;x86_64;ppc" CACHE STRING "Build architectures for OSX") set(CMAKE_OSX_DEPLOYMENT_TARGET "10.5" CACHE STRING "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value") set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk" CACHE PATH @@ -52,6 +52,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") set(LUGARU_SRCS ${SRCDIR}/Frustum.cpp + ${SRCDIR}/Account.cpp + ${SRCDIR}/Game.cpp ${SRCDIR}/GameDraw.cpp ${SRCDIR}/GameInitDispose.cpp ${SRCDIR}/GameTick.cpp @@ -60,56 +62,60 @@ set(LUGARU_SRCS ${SRCDIR}/Models.cpp ${SRCDIR}/Objects.cpp ${SRCDIR}/pack.c - ${SRCDIR}/pack_private.c ${SRCDIR}/Person.cpp ${SRCDIR}/private.c ${SRCDIR}/Quaternions.cpp - ${SRCDIR}/Random.c ${SRCDIR}/Skeleton.cpp ${SRCDIR}/Skybox.cpp - ${SRCDIR}/Sprites.cpp + ${SRCDIR}/Sprite.cpp ${SRCDIR}/Terrain.cpp + ${SRCDIR}/Texture.cpp ${SRCDIR}/Text.cpp ${SRCDIR}/TGALoader.cpp ${SRCDIR}/unpack.c - ${SRCDIR}/unpack_private.c ${SRCDIR}/Weapons.cpp ${SRCDIR}/OpenGL_Windows.cpp ${SRCDIR}/openal_wrapper.cpp - ${SRCDIR}/WinInput.cpp + ${SRCDIR}/Input.cpp + ${SRCDIR}/Settings.cpp + ${SRCDIR}/Stereo.cpp + ${SRCDIR}/Animation.cpp + ${SRCDIR}/Sounds.cpp + ${SRCDIR}/Awards.cpp ) set(LUGARU_H - ${SRCDIR}/Constants.h ${SRCDIR}/Frustum.h + ${SRCDIR}/Account.h ${SRCDIR}/Game.h ${SRCDIR}/Lights.h - ${SRCDIR}/LinkedList.h ${SRCDIR}/Models.h ${SRCDIR}/Objects.h ${SRCDIR}/Person.h ${SRCDIR}/PhysicsMath.h - ${SRCDIR}/Pointer.h ${SRCDIR}/Quaternions.h ${SRCDIR}/Random.h ${SRCDIR}/Skeleton.h ${SRCDIR}/Skybox.h - ${SRCDIR}/Sprites.h + ${SRCDIR}/Sprite.h ${SRCDIR}/TGALoader.h ${SRCDIR}/Terrain.h + ${SRCDIR}/Texture.h ${SRCDIR}/Text.h ${SRCDIR}/Weapons.h - ${SRCDIR}/WinInput.h + ${SRCDIR}/Input.h ${SRCDIR}/alstubs.h ${SRCDIR}/binio.h ${SRCDIR}/openal_wrapper.h ${SRCDIR}/gamegl.h ${SRCDIR}/glstubs.h - ${SRCDIR}/mmgr.h - ${SRCDIR}/nommgr.h - ${SRCDIR}/pack_private.h ${SRCDIR}/private.h - ${SRCDIR}/unpack_private.h + ${SRCDIR}/Settings.h + ${SRCDIR}/Stereo.h + ${SRCDIR}/Animation.h + ${SRCDIR}/Animation.def + ${SRCDIR}/Sounds.h + ${SRCDIR}/Sounds.def ) if(UNIX) @@ -191,6 +197,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) @@ -488,7 +498,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/Source ) -set(LUGARU_LIBS ${OPENAL_LIBRARY} ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARIES} ${SDL_LIBRARY} ${GLU_LIBRARY} ${OPENGL_LIBRARY} ${VORBISFILE_LIBRARY} ${OGG_LIBRARY} ${PLATFORM_LIBS}) +set(LUGARU_LIBS ${OPENAL_LIBRARY} ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARIES} ${SDL_LIBRARY} ${OPENGL_glu_LIBRARY} ${VORBISFILE_LIBRARY} ${OGG_LIBRARY} ${PLATFORM_LIBS}) if(WIN32) @@ -538,7 +548,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}")