Skip to content
0:00 / 0:00

#cmake#ctest#cpack

C++Now 2017: Daniel Pfeifer “Effective CMake"

CppNow

39K subscribers • 42 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on C++Now, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Daniel Pfeifer
  • Linked in the descriptionboostcon/cppnow_presentations_2017

Intermediate. Assumes working knowledge.

193K views9 years ago

Tools and practiceBuild systems and packagingC++

Daniel Pfeifer introduces CMake, CTest, and CPack, sharing best practices for building, testing, and packaging C++ libraries.

cppnow.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/boostcon/cppnow_presentations_2017 — While CMake has become the de-facto standard buildsystem for C++, it's siblings CTest and CPack are less well known. This talk gives a lightspeed introduction into these three tools and then focuses on best practices on building, testing, and packaging. We will learn how to manage dependencies and export our libraries in such a way that they can be easily used by our clients. We will crosscompile for different platforms and run our tests in an emulator. We will analyze code coverage and perform static and dynamic code analysis. — Daniel is an Electrical Engineer turned into a Computer Scientist. He works as C++ developer, system architect, trainer and guru for C++ and CMake. Daniel is the founder of the C++ user group in Munich. He is also an active contributor to CMake and knows some undocumented internals. — Videos Filmed & Edited by Bash Films: BashFilms.com --- *--* ---

Why it's here

A top upload from a listed channel

C++Now is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.

u/skyb0rgin r/C_Programming • Mentions

On “Rewriting code base to use CMake.”

Although the speaker is not a great presenter, This talk is pretty good to describe how to use CMake Warning - you should know basic CMake first

u/skyb0rgin r/C_Programming • Mentions

On “Rebuilding Codebase and adding CMake build scripts.”

Look up Effective Modern CMake to learn about targets and compiling your program For a little more, this talk is pretty good too link to this video

u/loneraverin r/C_Programming • Mentions

On “Help with SDL2 using CLion and CMake”

…ver use include_directories() in modern CMake, it's the devil! It'll bite you in the end. You don't need it at all if you use step 4. The include path will automatically be added when you link it with the proper target. 4. Replace target_link_libraries(Test ${SDL2_LIBRARY}) with target_link_libraries(Test PRIVATE SDL2::SDL2). Check out the video link to this video for more help with CMake. This is the best talk explaining it.…