Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Last active September 4, 2019 09:59
Show Gist options
  • Save jniemann66/9d3a4f5d20c6710cf7a0bed10905af91 to your computer and use it in GitHub Desktop.
Save jniemann66/9d3a4f5d20c6710cf7a0bed10905af91 to your computer and use it in GitHub Desktop.
Cmake-resources.md

modern cmake https://cliutils.gitlab.io/modern-cmake/

cmake documentation https://cmake.org/documentation/

Cmake AntiPatterns http://voices.canonical.com/jussi.pakkanen/2013/03/26/a-list-of-common-cmake-antipatterns/

cmake & Qt https://doc.qt.io/qt-5/cmake-manual.html

SO: What is the modern method for setting general compile flags in CMake? https://stackoverflow.com/questions/23995019/what-is-the-modern-method-for-setting-general-compile-flags-in-cmake

How to CMake Good (Video series) https://www.youtube.com/playlist?list=PLK6MXr8gasrGmIiSuVQXpfFuE1uPT615s

More Modern CMake - Deniz Bahadir (Video) https://youtu.be/y7ndUhdQuU8

SO: CMake package vs library https://stackoverflow.com/questions/23832339/package-vs-library

How do I see exact command line as sent to compiler ? (SO) https://stackoverflow.com/questions/2670121/using-cmake-with-gnu-make-how-can-i-see-the-exact-commands

CMake stuff i wish i knew earlier http://www.brianlheim.com/2018/04/09/cmake-cheat-sheet.html#config-and-build-steps

Using Shared Libraries on Different Compilers and Operation systems http://gernotklingler.com/blog/creating-using-shared-libraries-different-compilers-different-operating-systems/

Mac no longer seeing /usr/local/include, /usr/local/lib as default search paths in cmake: https://gitlab.kitware.com/cmake/cmake/issues/19120

Using all cores https://blog.kitware.com/cmake-building-with-all-your-cores/

QtCreator tips (for more useful build output):

QtCreator: Projects / Build & Run / kit / Build / CMAKE / CMAKE_VERBOSE_MAKEFILE = ON

(QMake only ?) QtCreator: Projects / Build & Run / Kit / Build / Make / Make arguments: --no-print-directory --output-sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment