Files
qt5-legatus-legacy/cmake/FindBgViewer.cmake
T
2026-08-13 18:33:10 +02:00

37 lines
1.3 KiB
CMake
Executable File

# $HeadURL$
# -------------------------------------------------------------------------
#!
# -------------------------------------------------------------------------
# COPYRIGHT (C) 2008: RHEINMETALL DEFENCE ELECTRONICS GmbH, D-28305 BREMEN
# -------------------------------------------------------------------------
#
# BRIEF DESC: CMake-Findskript
# AUTHOR : RDE / SGS
#
# Revision INFO:
# --------------
# $Revision$
# $Date$
# $Id$
#
# - Find BgViewer and dependencies
# Find the BgViewer includes and library
#
# BGVIEWER_INCLUDE_DIR - where to find BgViewer includes.
# BGVIEWER_LIBRARIES - List of libraries when using BgViewer
# BGVIEWER_FOUND - True if BgViewer found.
INCLUDE(FindPackageHandleStandardArgs)
INCLUDE(FindLibraryWithDebug)
FIND_LIBRARY_WITH_DEBUG(BGVIEWER_DTENTITY_LIBRARY WIN32_DEBUG_POSTFIX d dtEntity)
FIND_LIBRARY_WITH_DEBUG(BGVIEWER_DTENTITYOSG_LIBRARY WIN32_DEBUG_POSTFIX d dtEntityOSG)
FIND_PATH(BGVIEWER_INCLUDE_DIR dtEntity/export.h)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BgViewer DEFAULT_MSG
BGVIEWER_DTENTITY_LIBRARY
BGVIEWER_DTENTITYOSG_LIBRARY
BGVIEWER_INCLUDE_DIR)
SET(BGVIEWER_LIBRARIES ${BGVIEWER_DTENTITYOSG_LIBRARY}
${BGVIEWER_DTENTITY_LIBRARY})