how-to-export-cpp-library
An OS-agnostic C++ library template in plain CMake.
File Explorer
Download Latest Version (.zip)- ci.yml
- AddInstallRPATHSupport.cmake
- AddUninstallTarget.cmake
- InstallBasicPackageFiles.cmake
- CMakeLists.txt
- Doxyfile.in
- main.dox
- CMakeLists.txt
- main.cpp
- CMakeLists.txt
- main.cpp
- LibHeaderOnlyTemplateCMake.h
- CMakeLists.txt
- LibTemplateCMake.h
- LibTemplateCMake.cpp
- CMakeLists.txt
- CMakeLists.txt
- check_sum_and_diff.cpp
- CMakeLists.txt
- check_sum_and_diff.cpp
- CMakeLists.txt
- CMakeLists.txt
- .gitignore
- CMakeLists.txt
- LICENSE-template.md
- LICENSE.md
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/robotology/how-to-export-cpp-library
Downloads the entire project code from GitHub to your computer.
cd how-to-export-cpp-library
Moves into the project folder you just downloaded.
2. CMake
Medium RecommendedPrerequisites
cmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
cmake --build .
Type this command into your terminal and run it.
target_link_libraries(test_name_exec lib-template-cmake)
Type this command into your terminal and run it.
Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
