Last active
July 3, 2018 18:51
-
-
Save jefflarkin/8d0ebefe21cf83168e116ed34ee61650 to your computer and use it in GitHub Desktop.
Simple way to add libnvToolsExt to a cmake project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This should be added AFTER the FindCUDA macro has been run | |
IF(USE_NVTX) | |
IF(HAVE_CUDA) | |
ADD_DEFINITIONS(-DUSE_NVTX) | |
LINK_DIRECTORIES("${CUDA_TOOLKIT_ROOT_DIR}/lib64") | |
LINK_LIBRARIES("nvToolsExt") | |
ENDIF(HAVE_CUDA) | |
ENDIF(USE_NVTX) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment