CMake

Yongs12 ㅣ 2024. 8. 22. 09:33

CMake는 C/C++ 프로젝트를 위한 강력한 빌드 시스템으로 소프트웨어를 관리하고 크로스 플랫폼 지원을 제공하는 빌드 파일 생성 도구이다.

Makefile, Visual Studio 솔루션, Ninja 빌드 파일 등과 같은 빌드 파일을 생성할 수 있고 이러한
빌드 시스템을 통해 최종 실행 파일을 생성한다.

 


CMake 설치 URL

https://cmake.org/download/

 

Download CMake

You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulatio

cmake.org

 

ZIP 파일 또는 설치 파일 다운로드

 

 

설치된 CMake(GUI)를 실행 후

1. CMakeLists.txt 텍스트 파일이 있는 CMake 폴더 경로

2. 빌드 후 결과물 출력될 폴더 경로

3. 어떤 버전으로 생성할것인지를 선택할 수 있다.

Generate 버튼 클릭 시 선택창이 뜬다.

 

Protobuf는 BINARIES, LIBS을 체크 후 다시 Generate를 해준다.

 

생성된 라이브러리 프로젝트