how-to-export-cpp-library
An OS-agnostic C++ library template in plain CMake.
파일 탐색기
최종 버전 다운로드 (.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
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/robotology/how-to-export-cpp-library
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd how-to-export-cpp-library
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. CMake
보통 추천사전 준비물
cmake ..
소스코드를 분석해 빌드 설정 파일을 생성합니다 (build 폴더 안에서 실행해야 함).
cmake --build .
이 명령어를 터미널에 그대로 입력해 실행하세요.
target_link_libraries(test_name_exec lib-template-cmake)
이 명령어를 터미널에 그대로 입력해 실행하세요.
build 폴더 안에 실행 파일이 생성됐는지 확인하고, 직접 실행해보세요 (예: ./build/앱이름).
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
