CMake-Cookbook
CMake Cookbook, by Packt
파일 탐색기
최종 버전 다운로드 (.zip)- config.yml
- CODE_OF_CONDUCT.md
- CODEOWNERS
- CONTRIBUTING.md
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- CMakeLists.txt
- hello-world.c
- CMakeLists.txt
- hello-world.cpp
- CMakeLists.txt
- hello-world.f90
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.c
- CMakeLists.txt
- hello-world.cpp
- CMakeLists.txt
- hello-world.f90
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- hello-world.f90
- menu.yml
- message.f90
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- menu.yml
- Message.cpp
- Message.hpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- compute-areas.cpp
- geometry_circle.cpp
- geometry_circle.hpp
- geometry_polygon.cpp
- geometry_polygon.hpp
- geometry_rhombus.cpp
- geometry_rhombus.hpp
- geometry_square.cpp
- geometry_square.hpp
- menu.yml
- abstract.md
- README.md
- title.txt
- animal-farm.cpp
- Animal.cpp
- Animal.hpp
- Cat.cpp
- Cat.hpp
- CMakeLists.txt
- Dog.cpp
- Dog.hpp
- Factory.hpp
- CMakeLists.txt
- compute-areas.f90
- geometry_circle.f90
- geometry_polygon.f90
- geometry_rhombus.f90
- geometry_square.f90
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- compute-areas.cpp
- geometry_circle.cpp
- geometry_circle.hpp
- geometry_polygon.cpp
- geometry_polygon.hpp
- geometry_rhombus.cpp
- geometry_rhombus.hpp
- geometry_square.cpp
- geometry_square.hpp
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- CMakeLists.txt
- hello-world.F90
- menu.yml
- abstract.md
- README.md
- title.txt
- arch-dependent.cpp
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- config.h.in
- processor-info.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- linear-algebra.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-embedded-python.c
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- Py2-pure-embedding.cpp
- Py3-pure-embedding.cpp
- use_numpy.py
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CxxBLAS.cpp
- CxxBLAS.hpp
- CxxLAPACK.cpp
- CxxLAPACK.hpp
- linear-algebra.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- menu.yml
- CMakeLists.txt
- example.cpp
- menu.yml
- CMakeLists.txt
- example.f90
- menu.yml
- CMakeLists.txt
- example.f90
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-mpi.c
- menu.yml
- CMakeLists.txt
- hello-mpi.c
- menu.yml
- CMakeLists.txt
- hello-mpi.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- linear-algebra.cpp
- menu.yml
- README.md
- CMakeLists.txt
- linear-algebra.cpp
- menu.yml
- README.md
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- path-info.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hwclient.c
- hwserver.c
- menu.yml
- CMakeLists.txt
- hwclient.c
- hwserver.c
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- FindZeroMQ.cmake
- hwclient.c
- hwserver.c
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- test.py
- test.sh
- abstract.md
- README.md
- title.txt
- catch.hpp
- CMakeLists.txt
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- CMakeLists.txt
- fetch_at_configure_step.in
- fetch_git_repo.cmake
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- leaky_implementation.cpp
- leaky_implementation.hpp
- menu.yml
- test.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- test.py
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- test.py
- abstract.md
- README.md
- title.txt
- a.py
- b.py
- c.py
- d.py
- e.py
- f.py
- g.py
- h.py
- i.py
- j.py
- CMakeLists.txt
- menu.yml
- a.py
- b.py
- c.py
- d.py
- e.py
- f.py
- g.py
- h.py
- i.py
- j.py
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- benchmark-a.py
- benchmark-b.py
- feature-a.py
- feature-b.py
- feature-c.py
- feature-d.py
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- cleanup.py
- feature-a.py
- feature-b.py
- setup.py
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- eigen-eigen-5a0156e40feb.tar.gz
- linear-algebra.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- linear-algebra.cpp
- menu.yml
- README.md
- wrap_BLAS_LAPACK.tar.gz
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- wrap_BLAS_LAPACK.tar.gz
- CMakeLists.txt
- linear-algebra.cpp
- menu.yml
- README.md
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- echo-file.py
- example.f90
- menu.yml
- static-size.py
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- taskloop.cpp
- CMakeLists.txt
- taskloop.cpp
- abstract.md
- README.md
- title.txt
- asan-example.cpp
- CMakeLists.txt
- menu.yml
- msan-example.cpp
- tsan-example.cpp
- ubsan-example.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- menu.yml
- test-uuid.c
- use-uuid.cpp
- CMakeLists.txt
- menu.yml
- test-uuid.c
- use-uuid.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- menu.yml
- asan-example.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- example.f90
- menu.yml
- print_info.c.in
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- configurator.py
- example.f90
- menu.yml
- print_info.c.in
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- generate.py
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.c
- version.h.in
- CMakeLists.txt
- example.f90
- menu.yml
- version.f90.in
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- VERSION
- version.hpp.in
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- version.hpp.in
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- git-hash.cmake
- version.hpp.in
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- sum_integers.cpp
- sum_integers.hpp
- catch.hpp
- CMakeLists.txt
- test.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- colors.cmake
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- set_compiler_flag.cmake
- abstract.md
- README.md
- title.txt
- testing.cmake
- CMakeLists.txt
- main.cpp
- sum_integers.cpp
- sum_integers.hpp
- catch.hpp
- CMakeLists.txt
- test.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- custom.cmake
- include_guard.cmake
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- custom.cmake
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- conversion.cpp
- conversion.hpp
- README.md
- CMakeLists.txt
- evolution.cpp
- evolution.hpp
- CMakeLists.txt
- initial.cpp
- initial.hpp
- CMakeLists.txt
- io.cpp
- io.hpp
- CMakeLists.txt
- parser.cpp
- parser.hpp
- CMakeLists.txt
- main.cpp
- catch.hpp
- CMakeLists.txt
- test.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- conversion.cpp
- conversion.hpp
- README.md
- CMakeLists.txt
- evolution.cpp
- evolution.hpp
- CMakeLists.txt
- initial.cpp
- initial.hpp
- CMakeLists.txt
- io.cpp
- io.hpp
- CMakeLists.txt
- parser.cpp
- parser.hpp
- CMakeLists.txt
- main.cpp
- catch.hpp
- CMakeLists.txt
- test.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- conversion.f90
- README.md
- ancestors.f90
- CMakeLists.txt
- empty.f90
- evolution.f90
- CMakeLists.txt
- initial.f90
- CMakeLists.txt
- io.f90
- CMakeLists.txt
- parser.f90
- CMakeLists.txt
- main.f90
- CMakeLists.txt
- test.f90
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- CMakeLists.txt
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CMakeLists.txt
- CMakeLists.txt
- path-info.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CMakeLists.txt
- CMakeLists.txt
- fftw_example.c
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- CMakeLists.txt
- fetch_at_configure_step.in
- fetch_git_repo.cmake
- main.cpp
- menu.yml
- sum_integers.cpp
- sum_integers.hpp
- test.cpp
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CMakeLists.txt
- CMakeLists.txt
- use_message.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- interface_backtrace.f90
- interface_randomgen.f90
- randomgen.c
- CMakeLists.txt
- util_strings.f90
- bt-randomgen-example.f90
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- CMakeLists.txt
- interface_backtrace.f90
- interface_randomgen.f90
- randomgen.cpp
- CMakeLists.txt
- util_strings.f90
- bt-randomgen-example.f90
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- CMakeLists.txt
- interface_backtrace.f90
- interface_uuid.f90
- CMakeLists.txt
- util_strings.f90
- bt-uuid-example.f90
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- CMakeLists.txt
- interface_backtrace.f90
- interface_uuid.f90
- CMakeLists.txt
- util_strings.f90
- bt-uuid-example.f90
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CxxBLAS.cpp
- CxxBLAS.hpp
- CxxLAPACK.cpp
- CxxLAPACK.hpp
- CMakeLists.txt
- linear-algebra.cpp
- CMakeLists.txt
- menu.yml
- README.md
- abstract.md
- README.md
- title.txt
- FindCython.cmake
- UseCython.cmake
- account.cpp
- account.hpp
- account.pyx
- CMakeLists.txt
- menu.yml
- test.py
- abstract.md
- README.md
- title.txt
- account.cpp
- account.hpp
- CMakeLists.txt
- menu.yml
- test.py
- abstract.md
- README.md
- title.txt
- account.cpp
- account.hpp
- CMakeLists.txt
- test.py
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- c_cpp_interface.cpp
- cpp_implementation.cpp
- cpp_implementation.hpp
- __init__.py
- account.h
- CMakeLists.txt
- test.py
- CMakeLists.txt
- menu.yml
- fortran_implementation.f90
- __init__.py
- account.h
- CMakeLists.txt
- test.py
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- messageConfig.cmake.in
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- use_message.cpp
- CMakeLists.txt
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- install_hook.cmake.in
- print_rpath.py
- CMakeLists.txt
- CMakeLists.txt
- CMakeLists.txt
- use_message.cpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- coffee.icns
- Info.plist.in
- messageConfig.cmake.in
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- use_message.cpp
- CMakeLists.txt
- CMakeCPack.cmake
- CMakeLists.txt
- INSTALL.md
- LICENSE
- menu.yml
- abstract.md
- README.md
- title.txt
- __init__.py
- account.cpp
- account.hpp
- CMakeLists.txt
- test.py
- version.py
- CMakeLists.txt
- custom.sh
- MANIFEST.in
- README.rst
- setup.py
- abstract.md
- README.md
- title.txt
- c_cpp_interface.cpp
- cpp_implementation.cpp
- cpp_implementation.hpp
- __init__.py
- account.h
- CMakeLists.txt
- interface_file_names.cfg.in
- test.py
- version.py
- CMakeLists.txt
- custom.sh
- MANIFEST.in
- README.rst
- setup.py
- fortran_implementation.f90
- __init__.py
- account.h
- CMakeLists.txt
- interface_file_names.cfg.in
- test.py
- version.py
- CMakeLists.txt
- custom.sh
- MANIFEST.in
- menu.yml
- README.rst
- setup.py
- abstract.md
- README.md
- title.txt
- meta.yaml
- CMakeLists.txt
- custom.sh
- example.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- meta.yaml
- CMakeLists.txt
- custom.sh
- example.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- UseDoxygenDoc.cmake
- Doxyfile.in
- front_page.md
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- FindSphinx.cmake
- UseSphinxDoc.cmake
- conf.py.in
- index.rst
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- FindPythonModule.cmake
- FindSphinx.cmake
- UseBreathe.cmake
- classes-and-functions.rst
- message.rst
- conf.py.in
- Doxyfile.in
- index.rst
- CMakeLists.txt
- hello-world.cpp
- Message.cpp
- Message.hpp
- CMakeLists.txt
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- CMakeLists.txt
- hello-world.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- example.cpp
- menu.yml
- CMakeLists.txt
- example.f90
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- toolchain-travis.cmake
- CMakeLists.txt
- main.cpp
- sum_integers.cpp
- sum_integers.hpp
- CMakeLists.txt
- test_long.cpp
- test_short.cpp
- CMakeLists.txt
- CTestConfig.cmake
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- main.cpp
- sum_integers.cpp
- sum_integers.hpp
- CMakeLists.txt
- test_long.cpp
- test_short.cpp
- CMakeLists.txt
- CTestConfig.cmake
- menu.yml
- abstract.md
- README.md
- title.txt
- buggy.cpp
- buggy.hpp
- CMakeLists.txt
- CMakeLists.txt
- leaky.cpp
- use_after_free.cpp
- CMakeLists.txt
- CTestConfig.cmake
- dashboard.cmake
- menu.yml
- buggy.f90
- CMakeLists.txt
- CMakeLists.txt
- leaky.f90
- out_of_bounds.f90
- CMakeLists.txt
- CTestConfig.cmake
- dashboard.cmake
- menu.yml
- abstract.md
- README.md
- title.txt
- CMakeLists.txt
- CTestConfig.cmake
- dashboard.cmake
- example.cpp
- menu.yml
- abstract.md
- README.md
- title.txt
- README.md
- title.txt
- README.md
- recipe-01.png
- recipe-02.png
- recipe-03.png
- vs-build-step-01.png
- vs-build-step-02.png
- vs-cmake-settings.png
- vs-configuration-step.png
- vs-installation-01.png
- vs-installation-02.png
- recipe-01-detail.png
- recipe-01-overview.png
- recipe-02-detail.png
- recipe-02-lines.png
- recipe-02-overview.png
- recipe-03-detail.png
- recipe-03-overview.png
- recipe-04-detail.png
- recipe-04-overview.png
- cmake-times.jpg
- cmake-times.svg
- README.md
- plot.py
- README.md
- requirements.txt
- trends.csv
- trends.png
- anaconda.ps1
- boost.bat
- download.ps1
- extract.bat
- install-msmpi.ps1
- install.bat
- anaconda.sh
- boost.sh
- cmake.sh
- eigen.sh
- install.sh
- ninja.sh
- report_versions.sh
- collect_tests.py
- env.py
- menu.yml
- parse.py
- README.md
- generate-readmes.py
- .appveyor.yml
- .clang-format
- .editorconfig
- .envrc
- .gitattributes
- .gitignore
- .mailmap
- .style.yapf
- .travis.yml
- AUTHORS.md
- CHANGELOG.md
- LICENSE
- Pipfile
- Pipfile.lock
- README.md
- requirements.txt
- Software Hardware List.pdf
- STYLE_GUIDE.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/PacktPublishing/CMake-Cookbook
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd CMake-Cookbook
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. CMake
보통 추천사전 준비물
⚠️ 이 프로젝트는 규모가 큰 저장소라, 이 방법이 실제 핵심 제품이 아니라 내부 하위 패키지를 가리키는 것일 수 있습니다. README 전체를 함께 확인해보세요.
cd chapter-01/recipe-01/c-example
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
mkdir build && cd build
빌드 결과물을 담을 폴더를 만들고 그 안으로 이동합니다.
cmake ..
소스코드를 분석해 빌드 설정 파일을 생성합니다 (build 폴더 안에서 실행해야 함).
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
build 폴더 안에 실행 파일이 생성됐는지 확인하고, 직접 실행해보세요 (예: ./build/앱이름).
3. Python
쉬움사전 준비물
pip install -r figures/trends/requirements.txt
requirements.txt 등에 명시된 파이썬 라이브러리를 설치합니다.
python <실행할 파일명>.py # README에서 정확한 실행 파일명을 확인하세요
파이썬 스크립트(또는 모듈)를 실행합니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
// repository documentation
Was this content helpful?
(0 ratings)
