#CMake not recognizing Tracy header files

4 messages · Page 1 of 1 (latest)

pliant shale
#

When trying to include Tracy hpp files in my project that uses CMake, I got the following error for every single one of my hpp files in the tracy directory:

"E:/WorkFiles/ProjectName/src/tracy/public/tracy/Tracy.hpp(0): Note: No relevant classes found. No output generated."

Here are some modifications to my CMake file I have tried so far:

file(GLOB_RECURSE HEADERS "include/**.h" "src/**.hpp")
include_directories(PUBLIC "include" "src/tracy" ${CMAKE_BINARY_DIR})

I tried modifying the CMake to search for hpp files in src and then to look for include directories in src/tracy. When I try to include the file in my base_view.h it does not recognize it.

hardy jetty
#

find my cmake starter template on github

#

and look at lib/CMakeLists.txt

#

and src/Project.Library/CMakeLists.txt