How to generate a header in source with cmake?

白昼怎懂夜的黑 提交于 2019-12-01 04:58:24

I think that generated header are well placed in the binary directory, since you might want to create to build directories with the same source and different configurations resulting in different header generated.

You might want to include the build directory to your project:

include_directories(${CMAKE_CURRENT_BINARY_DIR})
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!