Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

godveryday/cmake-make_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

Make

,,,


CMake

Embedded C는 Cross-compile을 지원해야한다

Cross-compile을 위해서는 다양한 옵션을 지원해야 한다

하지만, 이쁜 문법을 가진 build system은 문법을 유지하기 위해 그런 옵션을 지원하기 힘들다

Native Build system은 맘대로 옵션을 넣을 수 있으나, 구조화가 되어있지 않다

CMake가 둘 사이의 타협을 본 문법을 가진다


Reference

https://cgold.readthedocs.io/en/latest/tutorials/workflow.html

https://gist.github.com/luncliff/6e2d4eb7ca29a0afd5b592f72b80cb5c


Modern CMake --> using OOP

Constructors

  • add_executable()
  • add_library()

Member variable

Member functions --> Member variable에 접근하기 위한 function (직접 접근불가)

  • get_target_property()
  • set_target_properties()
  • get_property(TARGET)
  • set_property(TARGET)
  • target_compile_definitions()
  • target_compile_features()
  • target_compile_options()
  • target_include_directories()
  • target_link_libraries()
  • target_sources()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /