cmrc
cmrc copied to clipboard
#include <cmrc/cmrc.hpp> never finds the include file
CMakeLists.txt:
include(CMakeRC.cmake)
cmrc_add_resource_library(my_files data/foo.bin)
add_executable(
MyApp
main.cpp
)
target_link_libraries(
MyApp
PRIVATE
my_files
...
)
However for some reason #include <cmrc/cmrc.hpp>
always says the include file cannot be found. When I look at the compiler command, I don't see the include path anywhere (there's no -I<...>/cmrc
anywhere).
Any idea what might be going on?
CMake version 3.23.