1 2 3 4 5
set(CMAKE_BUILD_INTERFACE_INCLUDES ON) add_library(subdirlib SHARED subdirlib.cpp) generate_export_header(subdirlib)