Files
GDevelop/Extensions/TextObject/CMakeLists.txt
T
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* 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
2018-05-09 15:57:38 -07:00

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)