cmrc icon indicating copy to clipboard operation
cmrc copied to clipboard

#include <cmrc/cmrc.hpp> never finds the include file

Open gregschlom opened this issue 2 years ago • 0 comments

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.

gregschlom avatar Dec 16 '22 01:12 gregschlom