mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +02:00
Add NSIGHT Profiliing capability
This commit is contained in:
parent
ff44a460d6
commit
541e528e57
1 changed files with 49 additions and 0 deletions
49
cmake/modules/FindNSIGHT.cmake
Normal file
49
cmake/modules/FindNSIGHT.cmake
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
#
|
||||||
|
# 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)
|
||||||
|
|
Loading…
Reference in a new issue