Why is my variable definition not visible in my target_link_libraries usage site at a higher directory scope than the one the variable was defined in?

I am having issue with correctly linking/including a library in my c++ project. I have followed other posts and used add_subdirectory, target_include_directories, and target_link_libraries in CMakeLists.txt. But I am still getting the following error during make. test_app/main.cc:3:10: fatal error: icalendar.h: No such file or directory #include "icalendar.h" ^~~~~~~~~~~~~ compilation terminated. CMakeFiles/program.dir/build.make:75: recipe for target ‘CMakeFiles/program.dir/main.cc.o’… Read More Why is my variable definition not visible in my target_link_libraries usage site at a higher directory scope than the one the variable was defined in?