mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
35 lines
802 B
CMake
35 lines
802 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
cmake_policy(SET CMP0015 NEW)
|
|
|
|
project(TextObject)
|
|
gd_add_extension_includes()
|
|
|
|
#Defines
|
|
###
|
|
gd_add_extension_definitions(TextObject)
|
|
|
|
#The targets
|
|
###
|
|
include_directories(.)
|
|
file(GLOB source_files *.cpp *.h)
|
|
file(GLOB gui_only_files Dialogs/*.cpp Dialogs/*.h)
|
|
|
|
IF(NO_GUI)
|
|
SET(ide_source_files "${source_files}")
|
|
ELSE()
|
|
SET(ide_source_files "${source_files};${gui_only_files}")
|
|
ENDIF()
|
|
|
|
|
|
gd_add_clang_utils(TextObject "${ide_source_files}")
|
|
gd_add_extension_target(TextObject "${ide_source_files}")
|
|
gdcpp_add_runtime_extension_target(TextObject_Runtime "${source_files}")
|
|
|
|
#Linker files for the IDE extension
|
|
###
|
|
gd_extension_link_libraries(TextObject)
|
|
|
|
#Linker files for the GD C++ Runtime extension
|
|
###
|
|
gdcpp_runtime_extension_link_libraries(TextObject_Runtime)
|