mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
9d4aa3c38c
fix format can not markSweep after deinit root support markRoot if not root add clang-format fix path enable compile-commonds on to support clangd set markSweep not default use no_gc object for function frame only gc for tinyobj, not pikaobj restore add gc chain when init pikaObj add clang-format in docker set for default formatter to clang-format all Object is GC_ROOT on create only enable mark sweep to collect after OUT markSweep after deinit __pikaMain more mark sweep collect
44 lines
1.6 KiB
CMake
44 lines
1.6 KiB
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-sign-conversion -Wno-write-strings -Wno-implicit-fallthrough -Wno-sign-compare -Wno-cast-function-type -Wno-unused-function)
|
|
OPTION(PIKA_CONFIG_ENABLE "pika config enable" OFF)
|
|
IF(PIKA_CONFIG_ENABLE)
|
|
ADD_DEFINITIONS(-DPIKA_CONFIG_ENABLE)
|
|
ENDIF(PIKA_CONFIG_ENABLE)
|
|
ADD_DEFINITIONS(-DUSE_GOOGLE_TEST=1)
|
|
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
|
# support lto
|
|
# IF(POLICY CMP0069)
|
|
# CMAKE_POLICY(SET CMP0069 NEW)
|
|
# ENDIF()
|
|
|
|
project(pikascript VERSION 0.1.0)
|
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
|
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
|
|
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage -lgcov")
|
|
|
|
include_directories(package/pikascript/pikascript-core)
|
|
include_directories(package/pikascript/pikascript-api)
|
|
include_directories(package/pikascript/pikascript-lib/PikaNN/TinyMaix/include)
|
|
include_directories(package/pikascript/pikascript-lib/PikaStdDevice)
|
|
|
|
include_directories(test)
|
|
INCLUDE_DIRECTORIES(/usr/include/lua5.3)
|
|
include_directories(config)
|
|
# include_directories(boot/demo01-led)
|
|
add_subdirectory(package/googletest)
|
|
add_subdirectory(package/pikascript)
|
|
add_subdirectory(test)
|
|
# add_subdirectory(boot/demo01-led)
|
|
# add_subdirectory(boot/demo02-add)
|
|
# add_subdirectory(boot/demo03-usart)
|
|
# add_subdirectory(boot/demo04-usarts)
|
|
# add_subdirectory(boot/demo05-sysobject)
|
|
add_subdirectory(boot/demo06-pikamain)
|
|
add_subdirectory(boot/banchmark)
|
|
add_subdirectory(benchmark)
|
|
add_subdirectory(performance)
|
|
|