tartarus's bolg tartarus's bolg
  • Linux and Unix Guide
  • CMake
  • gcc
  • gdb
  • bash
  • GNU Make
  • DDCA-ETH
  • CS106L
  • CS144
  • NJU PA
  • NJU OS(jyy)
  • C
  • C++
  • Python
  • reveal-md
  • LaTex
  • Paper Reading
  • TBD
  • Linux and Unix Guide
  • CMake
  • gcc
  • gdb
  • bash
  • GNU Make
  • DDCA-ETH
  • CS106L
  • CS144
  • NJU PA
  • NJU OS(jyy)
  • C
  • C++
  • Python
  • reveal-md
  • LaTex
  • Paper Reading
  • TBD
  • pdb

  • make

  • cmake

    • Introduction
    • Basic Intro
    • Basic 01-hello-cmake
    • Basic 02-hello-headers
    • Basic 03-static-library
    • Basic 04-shared-library
    • Basic 05-installing
    • Basic 06-build-type
    • Basic 07-complie-flags
    • Basic 08-third-party-library
    • Basic 09-compiling-with-clang
    • Basic 10-building-with-ninjia
    • Basic 11-cpp-standard
    • Intermediate sub-projects
    • Intermediate static-analysis
    • packge-management 04-conan
    • packge-management 05-vcpkg
    • Offical Tutorial(未完成)
  • Linux and Unix

  • Basic_Software
  • cmake
tartarus
2023-04-15

Basic Intro

这部分主要介绍 cmake 的基础知识,包括如何设置 CMake 工程项目,如何设置编译选项,如何构建和链接执行文件及库函数,这部分包好了下面几个部分:

  • hello-cmake. A hello world example.

  • hello-headers. A slightly more complicated hello world example, using separate source and include folders.

  • static-library. An example using a static library.

  • shared-library. An example using a shared library.

  • installing. Shows how to create a 'make install' target that will install binaries and libraries.

  • build-type. An example showing how to set a default build and optimization flags for your project.

  • compile-flags. Shows how to set additional compile flags.

  • third-party-library. Shows an example of how to link third party libraries.

  • compiling-with-clang. An example of invoking the clang compiler.

  • building-with-ninja - Shows how to generate ninja build files

  • imported-targets - Shows how to link boost using the new imported targets

  • cpp-standard - Shows various methods to set the C++ standard

上次更新: 12/27/2023, 8:55:47 AM
Introduction
Basic 01-hello-cmake

← Introduction Basic 01-hello-cmake→

Theme by Vdoing | Copyright © 2023-2023 tartarus | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式