CPython的CMakeLists.txt

cmake_minimum_required(VERSION 3.0)
project(cpython)

file(GLOB SOURCE_FILES
Python/*.c
Parser/*.c
Objects/*.c
Modules/*.c)

include_directories(Include)
include_directories(Include/internal)
include_directories(PC)

add_definitions(-DPy_BUILD_CORE)

add_executable(cpython ${SOURCE_FILES})

posted @ 2021-11-17 11:37  鸪斑兔  阅读(176)  评论(0编辑  收藏  举报