mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Simplify <platform>_generate cmake function signature, as TARGET_ALIAS and TARGET_NAME are still in scope and do not need to be passed. Add USE_FOLDERS, and FOLDER properties to group targets in VS and XCode Guard test target with GODOT_ENABLE_TESTING Generate all three variants in the form godot-cpp.test.<target> to remove the -DTEST_TARGET option clutter. Update the docs/cmake.rst with information about the testing target Update the Github CI
22 lines
514 B
CMake
22 lines
514 B
CMake
#[=======================================================================[.rst:
|
|
Linux
|
|
-----
|
|
|
|
This file contains functions for options and configuration for targeting the
|
|
Linux platform
|
|
|
|
]=======================================================================]
|
|
function( linux_options )
|
|
# Linux Options
|
|
endfunction()
|
|
|
|
function( linux_generate )
|
|
target_compile_definitions( ${TARGET_NAME}
|
|
PUBLIC
|
|
LINUX_ENABLED
|
|
UNIX_ENABLED
|
|
)
|
|
|
|
common_compiler_flags()
|
|
endfunction()
|