I am trying to use the GenerateExportHeader module from cmake.
part of my CmakeLists.txt:
add_compiler_export_flags() add_library(gui SHARED ${gui_CPP} ${gui_HPP}) generate_export_header(gui)
it works fine for the gui project itself, but when I try to include the gui.h files in another project, #include "gui_export.h" cannot be found. This is obvious since gui_export.h was created in gui build dir, which is not included in the path of including other projects.
A simple solution is to add gui build dir to another project, but: 1. I do not consider this a kosher solution 2. I could not even find how to find out what the target assembly array is
How can I solve this problem?
source share