2022-11-12 00:54:35 +08:00

14 lines
295 B
CMake

#设置 BINARY 为项目名IndexProject
set(BINARY ${CMAKE_PROJECT_NAME})
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.c)
set(SOURCES ${SOURCES})
# support <math.h>
link_libraries(m lua5.3 pthread)
add_library(${BINARY}-core
STATIC
${SOURCES}
)