CMake Cookbook
2018년 09월 26일 출간
- eBook 상품 정보
- 파일 정보 PDF (8.95MB)
- ISBN 9781788472340
- 지원기기 교보eBook App, PC e서재, 리더기, 웹뷰어
-
교보eBook App
듣기(TTS) 가능
TTS 란?텍스트를 음성으로 읽어주는 기술입니다.
- 전자책의 편집 상태에 따라 본문의 흐름과 다르게 텍스트를 읽을 수 있습니다.
- 이미지 형태로 제작된 전자책 (예 : ZIP 파일)은 TTS 기능을 지원하지 않습니다.
PDF 필기가능 (Android, iOS)

쿠폰적용가 19,800원
10% 할인 | 5%P 적립이 상품은 배송되지 않는 디지털 상품이며,
교보eBook앱이나 웹뷰어에서 바로 이용가능합니다.
카드&결제 혜택
- 5만원 이상 구매 시 추가 2,000P
- 3만원 이상 구매 시, 등급별 2~4% 추가 최대 416P
- 리뷰 작성 시, e교환권 추가 최대 200원
작품소개
이 상품이 속한 분야
CMake is a cross-platform, open-source tool for building software in a compiler-free method. CMake Cookbook features a collection of recipes and building blocks with tips and techniques for working with CMake, CTest, CPack, and CDash.
This book includes real-world examples in the form of recipes that cover different ways to configure, build, and test small- to large-scale code projects. You will learn to use CMake's command-line tools and master modern CMake practices for configuring, building, and testing binaries and libraries. With this book, you will be able to work with external libraries and structure your own projects in a modular and reusable way. You will be well-equipped to generate native build scripts for Linux, MacOS, and Windows, simplify and refactor projects using CMake, and port projects to CMake.
By the end of this book, you will have progressed through CMake and understood all its components.
▶What You Will Learn
? Configure, build, and install code projects using CMake
? Detect operating systems, processors, and programs for conditional compilation
? Increase the portability of your code
? Refactor a large codebase into modules with the help of CMake
? Build multi-language projects
? Tweak CMake configuration files written by somebody else
? Package projects for distribution
? Port projects to CMake
▶Key Features
? Configure, build, and package software written in C, C++, and Fortran
? Progress from simple to advanced tasks with examples tested on Linux, macOS, and Windows
? Manage code complexity and library dependencies with reusable CMake building blocks
▶Who This Book Is For
If you are a software developer keen to manage build systems using CMake or would like to understand and modify CMake code written by others, the CMake Cookbook is for you. Basic knowledge of C++, C, or Fortran is required to understand the topics covered in this book.
1: FROM A SIMPLE EXECUTABLE TO LIBRARIES
2: DETECTING THE ENVIRONMENT
3: DETECTING EXTERNAL LIBRARIES AND PROGRAMS
4: CREATING AND RUNNING TESTS
5: CONFIGURE-TIME AND BUILD-TIME OPERATIONS
6: GENERATING SOURCE CODE
7: STRUCTURING PROJECTS
8: THE SUPERBUILD PATTERN
9: MIXED-LANGUAGE PROJECTS
10: WRITING AN INSTALLER
11: PACKAGING PROJECTS
12: BUILDING DOCUMENTATION
13: ALTERNATIVE GENERATORS AND CROSS-COMPILATION
14: TESTING DASHBOARDS
15: PORTING A PROJECT TO CMAKE
▶What this book covers
? Chapter 1, From a Simple Executable to Libraries, shows how to get started configuring and building simple executables and libraries with CMake.
? Chapter 2, Detecting the Environment, explains how to interact with the operating system and processor architecture using simple CMake commands.
? Chapter 3, Detecting External Libraries and Programs, shows how CMake can simplify the detection of dependencies for your project.
? Chapter 4, Creating and Running Tests, explains how to harness the power of CMake and CTest to define and run tests.
? Chapter 5, Configure-time and Build-time Operations, shows how to perform custom operations at different stages of the build process with cross-platform CMake commands.
? Chapter 6, Generating Source Code, discusses CMake commands to automatically generate source code.
? Chapter 7, Structuring Projects, shows powerful CMake syntax for organizing your projects to make them more maintainable.
? Chapter 8, The Superbuild Pattern, explains the powerful CMake superbuild pattern for managing critical project dependencies with control over side effects.
? Chapter 9, Mixed-language Projects, shows how to build projects mixing different programming languages with the help of CMake.
? Chapter 10, Writing an Installer, takes care of the installation of projects with the crossplatform power of CMake.
? Chapter 11, Packaging Projects, shows how to use CPack to produce source and platformnative source archives and how to build Python and Conda packages for distribution.
? Chapter 12, Building Documentation, shows how to use CMake to also build the documentation for your code.
? Chapter 13, Alternative Generators and Cross-compilation, shows how to use CMake to crosscompile projects between platforms.
? Chapter 14, Testing Dashboards, shows how to report the results of tests to an online dashboard.
? Chapter 15, Porting a Project to CMake, shows best practices, tips, and tricks that will help you port a project to a CMake-based build system.
▶ Preface
Computer software is present in almost every aspect of our daily lives: it triggers our alarm clocks, fuels our communication, banking, weather forecasts, bus schedules, calendars, meetings, travel, photo albums, television, music streaming, social media, dinner and movie reservations, from dawn till dusk.
The software that surrounds us contains many layers: apps are built on top of frameworks, frameworks on top of libraries, libraries use smaller libraries and executables, all the way down to smaller and smaller software components. Libraries and executables in turn need to be built from source code. Often we only see the outermost layer, but all these layers need to be carefully organized and built. This book is about how to build libraries and executables from sources using CMake.
CMake and its siblings, CTest, CPack, and CDash, have emerged as the leading toolset for building software from sources, surpassing in usage and popularity many other similar tools, such as the venerated GNU Autotools and the more recent, Python-based, SCons build system.
작가정보
저자(글) Radovan Bast
Radovan is working at the High Performance Computing Group at UiT - The Arctic University of Norway in Tromsø and leads the CodeRefinery project. He has a PhD in theoretical chemistry and as code developer is contributing to a number of quantum chemistry programs. He enjoys learning new programming languages and techniques, and to teach programming to students and researchers. He got in touch with CMake in 2008 and has ported a number of research codes and migrated a number of communities to CMake since.
저자(글) Roberto Di Remigio
Roberto is a postdoctoral fellow in theoretical chemistry at the UiT - The Arctic University of Norway in Tromsø, Norway and Virginia Tech, USA. He is currently working on stochastic methods and solvation models. He is a developer of the PCMSolver library and the Psi4 open source quantum chemistry program. He contributes or has contributed to the development of popular quantum chemistry codes and libraries: DIRAC, MRCPP, DALTON, LSDALTON, XCFun, and ReSpect. He usually programs in C++ and Fortran.
이 상품의 총서
Klover리뷰 (0)
- - e교환권은 적립일로부터 180일 동안 사용 가능합니다.
- - 리워드는 5,000원 이상 eBook, 오디오북, 동영상에 한해 다운로드 완료 후 리뷰 작성 시 익일 제공됩니다. (2024년 9월 30일부터 적용)
- - 리워드는 한 상품에 최초 1회만 제공됩니다.
- - sam 이용권 구매 상품 / 선물받은 eBook은 리워드 대상에서 제외됩니다.
- 도서나 타인에 대해 근거 없이 비방을 하거나 타인의 명예를 훼손할 수 있는 리뷰
- 도서와 무관한 내용의 리뷰
- 인신공격이나 욕설, 비속어, 혐오 발언이 개재된 리뷰
- 의성어나 의태어 등 내용의 의미가 없는 리뷰
구매 후 리뷰 작성 시, e교환권 100원 적립
문장수집
- 구매 후 90일 이내에 문장 수집 등록 시 e교환권 100원을 적립해 드립니다.
- e교환권은 적립일로부터 180일 동안 사용 가능합니다.
- 리워드는 5,000원 이상 eBook에 한해 다운로드 완료 후 문장수집 등록 시 제공됩니다. (2024년 9월 30일부터 적용)
- 리워드는 한 상품에 최초 1회만 제공됩니다.
- sam 이용권 구매 상품 / 선물받은 eBook / 오디오북·동영상 상품/주문취소/환불 시 리워드 대상에서 제외됩니다.
구매 후 문장수집 작성 시, e교환권 100원 적립
신규가입 혜택 지급이 완료 되었습니다.
바로 사용 가능한 교보e캐시 1,000원 (유효기간 7일)
지금 바로 교보eBook의 다양한 콘텐츠를 이용해 보세요!

- 구매 후 90일 이내 작성 시, e교환권 100원 (최초1회)
- 리워드 제외 상품 : 마이 > 라이브러리 > Klover리뷰 > 리워드 안내 참고
- 콘텐츠 다운로드 또는 바로보기 완료 후 리뷰 작성 시 익일 제공
가장 와 닿는 하나의 키워드를 선택해주세요.
총 5MB 이하로 jpg,jpeg,png 파일만 업로드 가능합니다.
신고 사유를 선택해주세요.
신고 내용은 이용약관 및 정책에 의해 처리됩니다.
허위 신고일 경우, 신고자의 서비스 활동이 제한될 수
있으니 유의하시어 신중하게 신고해주세요.
이 글을 작성한 작성자의 모든 글은 블라인드 처리 됩니다.
구매 후 90일 이내 작성 시, e교환권 100원 적립
eBook 문장수집은 웹에서 직접 타이핑 가능하나, 모바일 앱에서 도서를 열람하여 문장을 드래그하시면 직접 타이핑 하실 필요 없이 보다 편하게 남길 수 있습니다.
차감하실 sam이용권을 선택하세요.
차감하실 sam이용권을 선택하세요.
선물하실 sam이용권을 선택하세요.
-
보유 권수 / 선물할 권수0권 / 1권
-
받는사람 이름받는사람 휴대전화
- 구매한 이용권의 대한 잔여권수를 선물할 수 있습니다.
- 열람권은 1인당 1권씩 선물 가능합니다.
- 선물한 열람권이 ‘미등록’ 상태일 경우에만 ‘열람권 선물내역’화면에서 선물취소 가능합니다.
- 선물한 열람권의 등록유효기간은 14일 입니다.
(상대방이 기한내에 등록하지 않을 경우 소멸됩니다.) - 무제한 이용권일 경우 열람권 선물이 불가합니다.
첫 구매 시 교보e캐시 지급해 드립니다.

- 첫 구매 후 3일 이내 다운로드 시 익일 자동 지급
- 한 ID당 최초 1회 지급 / sam 이용권 제외
- 구글바이액션을 통해 교보eBook 구매 이력이 없는 회원 대상
- 교보e캐시 1,000원 지급 (유효기간 지급일로부터 7일)