project(marble)

option(QTONLY  "Build Qt only" ON)
option(STATIC_BUILD "Link to static Qt libs (win32 only)" OFF)
if(STATIC_BUILD)
    add_definitions(-DSTATIC_BUILD=1)
endif(STATIC_BUILD)

find_package(Qt4 REQUIRED)

# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_SOURCE_DIR})

include(DistTarget)

if (NOT QTONLY)
  # search packages used by KDE
  find_package(KDE4 REQUIRED)
  include (KDE4Defaults)
  include (MacroLibrary)
endif (NOT QTONLY)

add_subdirectory(src)
add_subdirectory(data)

if(WIN32)
  set(data_dir data)
else(WIN32)
  set(data_dir share/apps/marble/data)
endif(WIN32)

install(FILES LICENSE.txt DESTINATION ${data_dir})

project(marble)

option(QTONLY  "Build Qt only" ON)
option(STATIC_BUILD "Link to static Qt libs (win32 only)" OFF)
if(STATIC_BUILD)
    add_definitions(-DSTATIC_BUILD=1)
endif(STATIC_BUILD)

find_package(Qt4 REQUIRED)

# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_CURRENT_SOURCE_DIR})

include(DistTarget)

if (NOT QTONLY)
  # search packages used by KDE
  find_package(KDE4 REQUIRED)
  include (KDE4Defaults)
  include (MacroLibrary)
endif (NOT QTONLY)

add_subdirectory(src)
add_subdirectory(data)

if(WIN32)
  set(data_dir data)
else(WIN32)
  set(data_dir share/apps/marble/data)
endif(WIN32)

install(FILES LICENSE.txt DESTINATION ${data_dir})

Build Marble by default and cmake++
Build Marble by default and cmake++

svn path=/trunk/playground/base/marble/; revision=655473
