CPython3.9源码的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 @ 2022-02-10 09:27  鸪斑兔  阅读(55)  评论(0编辑  收藏  举报