Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call "cmrc_add_resources" in sub directory #34

Open
hungxiu1995 opened this issue Feb 8, 2022 · 1 comment
Open

Call "cmrc_add_resources" in sub directory #34

hungxiu1995 opened this issue Feb 8, 2022 · 1 comment

Comments

@hungxiu1995
Copy link

hungxiu1995 commented Feb 8, 2022

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.

@maksimus57
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants