mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +00:00
remove Marble cmake modules
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
2b40e15713
commit
da3288590e
2 changed files with 0 additions and 61 deletions
|
@ -1,38 +0,0 @@
|
|||
# - Try to find the Marble Library
|
||||
# Once done this will define
|
||||
#
|
||||
# MARBLE_FOUND - system has Marble
|
||||
# MARBLE_INCLUDE_DIR - the Marble include directory
|
||||
# MARBLE_LIBRARIES
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
#
|
||||
|
||||
# in cache already
|
||||
IF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
||||
SET( MARBLE_FIND_QUIETLY TRUE )
|
||||
ENDIF ( MARBLE_INCLUDE_DIR AND MARBLE_LIBRARIES )
|
||||
|
||||
FIND_PATH( MARBLE_INCLUDE_DIR
|
||||
NAMES marble/MarbleModel.h
|
||||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../marble/src/lib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../marble-source/src/lib
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY( MARBLE_LIBRARIES
|
||||
NAMES
|
||||
ssrfmarblewidget
|
||||
HINTS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../install-root/lib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../marble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../marble-source
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
INCLUDE( FindPackageHandleStandardArgs )
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( marble DEFAULT_MSG MARBLE_INCLUDE_DIR MARBLE_LIBRARIES )
|
|
@ -1,23 +0,0 @@
|
|||
# setup marble
|
||||
|
||||
if(NOT NO_MARBLE)
|
||||
if(LIBMARBLE_FROM_PKGCONFIG)
|
||||
pkg_config_library(MARBLE libmarble REQUIRED)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
else()
|
||||
find_package(Marble QUIET)
|
||||
if(MARBLE_FOUND)
|
||||
include_directories(${MARBLE_INCLUDE_DIR})
|
||||
else()
|
||||
set(NO_MARBLE ON)
|
||||
message(STATUS "building without marble widget support")
|
||||
add_definitions(-DNO_MARBLE)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
endif()
|
||||
endif()
|
||||
add_custom_target(link_marble_data ALL COMMAND rm -rf ./marbledata && ln -sf ${CMAKE_SOURCE_DIR}/marbledata ${CMAKE_BINARY_DIR}/marbledata)
|
||||
else()
|
||||
message(STATUS "building without marble widget support")
|
||||
add_definitions(-DNO_MARBLE)
|
||||
set(MARBLE_LIBRARIES "")
|
||||
endif()
|
Loading…
Add table
Reference in a new issue