mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:16:08 +02:00
49 lines
1.2 KiB
CMake
49 lines
1.2 KiB
CMake
#
|
|
# FindNSIGHT.cmake
|
|
#
|
|
# Try to find NSIGHT NvToolsExt library and include path.
|
|
# Once done this will define
|
|
#
|
|
# NSIGHT_FOUND
|
|
# NSIGHT_INCLUDE_DIRS
|
|
# NSIGHT_LIBRARIES
|
|
#
|
|
# Created on 10/27/2014 by Sam Gateau
|
|
# Copyright 2014 High Fidelity, Inc.
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
|
|
if (WIN32)
|
|
|
|
find_path(NSIGHT_INCLUDE_DIRS
|
|
NAMES
|
|
nvToolsExt.h
|
|
PATH_SUFFIXES
|
|
include
|
|
PATHS
|
|
"C:/Program Files/NVIDIA Corporation/NvToolsExt")
|
|
|
|
find_library(NSIGHT_LIBRARY_RELEASE nvToolsExt32_1
|
|
PATH_SUFFIXES
|
|
"lib/Win32" "lib"
|
|
PATHS
|
|
"C:/Program Files/NVIDIA Corporation/NvToolsExt")
|
|
find_library(NSIGHT_LIBRARY_DEBUG nvToolsExt32_1
|
|
PATH_SUFFIXES
|
|
"lib/Win32" "lib"
|
|
PATHS
|
|
"C:/Program Files/NVIDIA Corporation/NvToolsExt")
|
|
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(NSIGHT)
|
|
endif ()
|
|
|
|
set(NSIGHT_LIBRARIES "${NSIGHT_LIBRARY}")
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(NSIGHT DEFAULT_MSG NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
|
|
|
|
mark_as_advanced(NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES NSIGHT_SEARCH_DIRS)
|
|
|