CMakeLists.txt:
cmake_minimum_required(VERSION 3.0)
project(cpython)
file(GLOB SOURCE_FILES
Programs/*.c
Python/*.c
Parser/*.c
Objects/*.c
Modules/*.c)
include_directories(.)
include_directories(Include)
add_executable(python.exe ${SOURCE_FILES})
上面的 add_executable(python.exe ${SOURCE_FILES}) 是Mac中的写法
源码的编译通过Terminal中的make执行,Debug设置中去掉Build任务
接下来就可以在CLion中查看和调试源码了