test_cmake大型项目组件配置案例

时间:2023-11-02 10:12:03
【文件属性】:

文件名称:test_cmake大型项目组件配置案例

文件大小:4KB

文件格式:GZ

更新时间:2023-11-02 10:12:03

cmake 组件

大型项目组件配置案例,参考Poco实现,如有不当之处请多多批评指正。环境ubuntu16.04,cmake版本3.5.1,其中test_cmake工程为案例,test_cmake_find用来依赖test_cmake工程。编译:1)在test_cmake/build下执行cmake ..然后make最后make install,会被安装到/usr/local目录下。2)在test_cmake_find/build下执行cmake..然后make最后./test_cmake_find可看到打印结果。


【文件预览】:
test_cmake_find
----src()
--------test_cmake_find.cpp(146B)
----CMakeLists.txt(327B)
----build()
test_cmake
----cmake()
--------test_cmakeConfigVersion.cmake .in(394B)
--------test_cmakeConfig.cmake.in(2KB)
--------cmake_uninstall.cmake.in(968B)
--------test_cmakeMacros.cmake(3KB)
----component2()
--------cmake()
--------include()
--------src()
--------CMakeLists.txt(830B)
----CMakeLists.txt(2KB)
----component1()
--------cmake()
--------include()
--------src()
--------CMakeLists.txt(801B)
----build()
----.vscode()
--------settings.json(1KB)

网友评论