Create Feature Macros with CMake's target_compile_definitions

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 8

  • @codingwithmat
    @codingwithmat  11 месяцев назад +2

    Do you wanna see more CMake videos? Let me know what features of CMake you want me to review / explain!

    • @osaijeigbafen6323
      @osaijeigbafen6323 11 месяцев назад +1

      Thanks for the videos.
      I would like to see how I can use cmake with pre-complied headers, or how to generate pre-complied headers with cmake, and a little bit about pre-complied headers in general.
      Love ur vids, from Nigeria btw

    • @codingwithmat
      @codingwithmat  11 месяцев назад

      @@osaijeigbafen6323 thank you for the support and for watching this vid! This should be interesting, I usually only used pre-compiled headers with Visual Studio before, so I need to learn this as well :D I'll add this to the list of CMake video I need to make.

  • @enigma_dev
    @enigma_dev 11 месяцев назад

    Great video! :)

    • @codingwithmat
      @codingwithmat  11 месяцев назад +1

      Thank you for watching! Congrats on your channel too, I might learn a thing or two about unreal ;)

  • @xinegopombo4713
    @xinegopombo4713 10 месяцев назад +1

    Hi man, thanks for the content. Plz, do one about cmake componentes ( like Qt and boost do ) . There are so few materials about it.

    • @codingwithmat
      @codingwithmat  10 месяцев назад +1

      Thank you for watching! I'll add this topic to my list, will need to do some research before posting the video :)

  • @adamsturge4622
    @adamsturge4622 3 месяца назад

    I'm really struggling to use this to set a TESTING_ENABLED preprocessor macro based on CONFIG type. I've learned that for multi config generators like the one I'm using (Ninja Multi Config) the CONFIG variable is not set properly when CMakeLists.txt is processed. So where do I put my call to target_compile_definitions? A video on this would be helpful