Is it possible to set include directories for a custom target?
已回答
I have an embedded C project I test with ceedling. Test project is not defined in CMake but in rakefile, therefore simplest way to run tests is to just run rake test as custom target (add_custom_target) in CLion.
I can specify source files for custom target in CMake to tell IDE what files to take in account, but I cannot specify include paths for custom target, so most of the functions used in test sources are unknown.
Is there a way in CLion to specify include paths also for custom target, as it is possible to specify source files?
请先登录再写评论。
Unfortunately, for now you have to provide a dummy non-custom target for CLion (with proper include directories) in order for code insight to work. Please follow the related issue in our tracker.