mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-02-05 17:28:23 +08:00
10 lines
230 B
CMake
10 lines
230 B
CMake
#设置 BINARY 为项目名IndexProject
|
|
set(BINARY ${CMAKE_PROJECT_NAME})
|
|
|
|
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.c)
|
|
set(SOURCES ${SOURCES})
|
|
|
|
add_library(${BINARY}-core
|
|
STATIC
|
|
${SOURCES})
|