# CMakeDemo **Repository Path**: vanlemon/CMakeDemo ## Basic Information - **Project Name**: CMakeDemo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2021-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CMakeDemo ## Examples 1. starting 2. better - src and bin - install 3. lib - lib - shared and static - install 4. link - include directories - link directories and libraries - **!!!: Error where ADD_EXECUTABLE is before LINK_DIRECTORIES or LINK_LIBRARIES** - target link libraries 5. model - find package 6. find - Find.cmake in ${CMAKE_MODULE_PATH} or ${CMAKE_ROOT}/Modules # References ## CMake 实践 - [CMake 实践一 PROJECT/MESSAGE/ADD_EXECUTABLE](https://www.cnblogs.com/52php/p/5681745.html) - [CMake 实践二 INSTALL/CMAKE_INSTALL_PREFIX](https://www.cnblogs.com/52php/p/5681751.html) - [CMake 实践三 构建静态库与动态库 及 如何使用外部共享库和头文件](https://www.cnblogs.com/52php/p/5681751.html) ## [CMake 入门实战](https://www.hahack.com/codes/cmake/) ## [CMake Guide](https://cgold.readthedocs.io/en/latest/index.html) ## [CMake Tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html#cmake-tutorial)