linux.cmake 784 B

123456789101112131415161718192021222324
  1. #[=======================================================================[.rst:
  2. Linux
  3. -----
  4. This file contains functions for options and configuration for targeting the
  5. Linux platform
  6. ]=======================================================================]
  7. #[=============================[ Linux Options ]=============================]
  8. function(linux_options)
  9. #[[ Options from SCons
  10. use_llvm : Use the LLVM compiler
  11. Not implemented as compiler selection is managed by CMake. Look to
  12. doc/cmake.rst for examples.
  13. ]]
  14. endfunction()
  15. #[===========================[ Target Generation ]===========================]
  16. function(linux_generate)
  17. target_compile_definitions(godot-cpp PUBLIC LINUX_ENABLED UNIX_ENABLED)
  18. common_compiler_flags()
  19. endfunction()