Imported library added in LBMConfig can not be used in client project
The following error is reported:
CMake Error at /airflow_simulator/lib/cmake/LBM-1.0/LBMConfig.cmake:57 (target_include_directories):
Cannot specify include directories for imported target "LBM".
Call Stack (most recent call first):
CMakeLists.txt:99 (find_package)
CMake Error at /airflow_simulator/lib/cmake/LBM-1.0/LBMConfig.cmake:58 (target_link_libraries):
Cannot specify link libraries for target "LBM" which is not built by this
project.
Call Stack (most recent call first):
CMakeLists.txt:99 (find_package)
-- Configuring incomplete, errors occurred!
Suggested solution
Export targets into a file called LBMTargets.cmake
and include it from LBMConfig.cmake