summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* [MSVC] Force UTF-8 encoding.bruvzg2023-07-111-1/+1
|
* Update CMakeLists.txtAlex2023-05-061-1/+1
|
* {cmake} Use STATIC and POSITION_INDEPENDENT_CODEAndy Maloney2023-02-071-11/+17
| | | | Instead of specifying flags manually, use CMake.
* Merge pull request #1008 from asmaloney/cmake-compiler-warningsRémi Verschelde2023-02-071-33/+28
|\ | | | | | | {cmake} Use the same compiler warnings as godot
| * {cmake} Use the same compiler warnings as godotAndy Maloney2023-02-041-35/+28
| |
* | {cmake} Combine target_include_directoriesAndy Maloney2023-02-021-8/+1
|/ | | | | | Makes all include directories consistent. Turns GODOT_CPP_SYSTEM_HEADERS ON by default since that's what was already being done for ${GODOT_GDEXTENSION_DIR}.
* {cmake} Add GODOT_CPP_SYSTEM_HEADERS option to mark includes as SYSTEMAndy Maloney2023-01-181-1/+11
| | | | | | | | From the cmake docs: "This may have effects such as suppressing warnings or skipping the contained headers in dependency calculations (see compiler documentation). Additionally, system include directories are searched after normal include directories regardless of the order specified." Addresses part of #999
* Rename float=64 build option to precision=doubleRicardo Buring2023-01-091-7/+6
| | | | | This makes the build system consistent with Godot again. Also fix CMake build to define REAL_T_IS_DOUBLE when precision=double.
* Rename godot-headers to gdextension, move header to top folderRémi Verschelde2022-12-141-9/+14
| | | | | | | | Changes the `<godot/gdextension_interface.h>` include to simply `<gdextension_interface.h>`. Refactor and better document the SCons and CMake logic around setting the paths to the header and API JSON file.
* Rename GDNative to GDExtensionGilles Roudière2022-12-121-2/+2
| | | | | | | | | | | | | Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension -> Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION -> EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
* {cmake} Updates for target-based approachAndy Maloney2022-12-041-23/+21
| | | | | | - instead of setting globals which can effect other projects including this as a subdirectory, set them on the target if possible - add "CONFIGURE_DEPENDS" to GLOBs to check for changes - update required CMake version to 3.12 (still ancient - 2018) to support these
* [MSVC] Add NOMINMAX flag to scons and cmake.Fabio Alessandrelli2022-09-121-2/+1
| | | | | Ensures user inclusion of windows.h do not define "min" and "max" macros.
* CMake: fix CMAKE_BUILD_TYPE and BITS checkJoshua Cooper2022-07-181-5/+7
|
* CMake: Fixup build after #732Rémi Verschelde2022-07-181-10/+3
|
* CMake: Don't use `-fPIC` on Windows (#732)Rémi Verschelde2022-07-181-1/+4
|\
| * Update CMakeLists.txtPxl2022-03-261-1/+4
| | | | | | fix compile fail when windows with llvm+ninja
* | Add double precision build support.bruvzg2022-05-041-6/+12
|/
* Sync `misc/` scripts and hooks with upstream GodotRémi Verschelde2022-03-151-1/+1
|
* Merge branch 'master' of https://github.com/godotengine/godot-cpp into ↵Nicolás Carrasco2022-02-201-3/+3
|\ | | | | | | test_cmake_windows
| * In CMakeLists, use the new FindPython3 instead of FindPythonIvorius2021-12-291-3/+3
| |
* | Fix Test CMake project for Windows and parametrize pathsNicolás Carrasco2022-01-261-3/+13
|/
* Test CMake project with CI (#518)O01eg2021-12-241-2/+4
|
* Require at least python 3Bradley Clemetson2021-12-111-1/+1
|
* synced windows compile definitions with scons configurationNickolai Korshunov2021-11-111-0/+5
| | | | df9164b9bd7b4505a9918212e39451b75a38a7d7
* Rework debug flags for CMakeHennadii Chernyshchyk2021-10-031-10/+5
| | | | | | | | | * Attach debug flags to the target and mark as `PUBLIC`. This will allow all projects that use bindings not to add the same defines manually. * Use generator-expressions to support multiconfig generators (such as MSVC). * Remove excplitic `NDEBUG` and `_DEBUG` flags, CMake handles it automatically.
* Changed over to proper godot-headersBastiaan Olij2021-09-271-2/+2
|
* Add aliasHennadii Chernyshchyk2021-09-271-0/+1
|
* Specify project languagesHennadii Chernyshchyk2021-09-271-1/+1
|
* Remove Generating Bindings messageHennadii Chernyshchyk2021-09-271-2/+1
| | | | Bindings are generated using `generate_bindings` and the command contains the `COMMENT` parameter, which will display a message about the generation.
* Do not override build pathHennadii Chernyshchyk2021-09-271-12/+0
|
* Fix OUTPUT for add_custom_commandHennadii Chernyshchyk2021-09-271-14/+4
|
* Fix issues with method callsGeorge Marques2021-09-271-0/+2
|
* Replace bindgins to work with extensionsGeorge Marques2021-09-271-14/+13
|
* Update `string(TOLOWER ...)` to take string versions of CMake variables (#561)Hristo Stamenov2021-05-201-2/+2
| | | On some generators (MSVC) there is the issue that this line produces cause by the variable being expanded and not being surrounded by quotes.
* Fix cmake source file generationMatteo De Carlo2021-03-031-6/+28
|
* Search correct python interpeter in case missing default "python"oleg2021-03-011-1/+2
|
* Merge pull request #456 from API-Beast/masterGeorge Marques2021-03-011-2/+10
|\ | | | | Fix compiling using CMake and GCC
| * GENERATE_TEMPLATE_GET_NODE option for CMakeManuel Riecke2020-09-201-1/+9
| |
| * Fix godot-cpp not compiling because of -Wlong-longManuel Riecke2020-09-191-1/+1
| |
| * Fix CMake failing to generate the bindings.Manuel Riecke2020-09-191-1/+1
| | | | | | | | | | A new parameter was added to the binding_generator python file, but the CMake file was not adjusted.
* | Rename godot_headers to godot-headers to match upstream renameRémi Verschelde2021-02-261-2/+2
|/ | | | Also updated the URLs which were still pointing to the old GitHub org.
* Update CMakeLists.txtPhilip Whitfield2019-04-121-2/+2
| | | | | | | | | | changes so this cmake file can be used as a subdirectory ``` add_subdirectory(godot-cpp) project(project-name) add_library(project-name SHARED src/init.cpp) target_link_libraries(project-name godot-cpp) ```
* Updated cmake to the new nativescript 1.1Acclution2018-12-021-0/+181