vector-of-bool/cmrc

Call "cmrc_add_resources" in sub directory

hungxiu1995 opened this issue · 1 comments

Hi, thanks for nice work. I am having trouble with a setup like this. Use "cmrc_add_resource_library" at top level source directory and "add_subdirectory" some sub directory. Each sub directory with a "cmrc_add_resources" command for resource files in that sub directory.
CMake always complain about that it can not find source file (intermediate cpp file) at configuring (cmake) step.
CMake Error at cmake/CMakeRC.cmake:498 (add_library):
Cannot find source file:
/home/nvidia/DeepStream/release/__cmrc_vinbigdata_deepstream-resources/intermediate/rc.jpg.cpp

I'd love to here your ideas or minimal example supporting such case.

Try this:
WHENCE argument in cmrc_add_resource_library/cmrc_add_resources with full path
e.g. ...WHENCE resources/text/string_table.txt