#          Copyright (c) Claus Hoefele.  All rights reserved.                  #
################################################################################

cmake_minimum_required(VERSION 2.6)

# This setting doesn't work for the Xcode generator
set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE TYPE INTERNAL FORCE)

project(2dots)

################################################################################
# Default compiler/linker settings
################################################################################

if (APPLE)
  if (2DOTS_BUILD_PLATFORM_IPHONE)
    # This setting breaks the Xcode project file
    set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_UNIVERSAL_IPHONE_OS)")
  endif (2DOTS_BUILD_PLATFORM_IPHONE)
endif (APPLE)

################################################################################
# Modules
################################################################################

add_subdirectory(../external/tinyxml external_tinyxml)
