14 lines
295 B
CMake
Raw Normal View History

2021-10-01 00:21:50 +08:00
#设置 BINARY 为项目名IndexProject
set(BINARY ${CMAKE_PROJECT_NAME})
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.c)
set(SOURCES ${SOURCES})
2022-06-12 10:44:32 +08:00
# support <math.h>
2022-11-12 00:54:35 +08:00
link_libraries(m lua5.3 pthread)
2022-06-12 10:44:32 +08:00
2021-10-01 00:21:50 +08:00
add_library(${BINARY}-core
STATIC
2022-06-12 10:44:32 +08:00
${SOURCES}
)