mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-05 17:42:24 +08:00
17 lines
379 B
CMake
17 lines
379 B
CMake
#include_directories(${util_SOURCE_DIR}/include)
|
|
#include_directories(${MYSQL_DIR_INC})
|
|
|
|
link_libraries(tarsutil)
|
|
#link_libraries(${MYSQL_DIR_LIB}/libmysqlclient.a)
|
|
#link_libraries(pthread z dl rt)
|
|
|
|
FILE(GLOB_RECURSE SRC_LIST "*.cpp")
|
|
|
|
foreach(FILE ${SRC_LIST})
|
|
get_filename_component(TARGETNAME ${FILE} NAME_WE)
|
|
add_executable(${TARGETNAME} ${FILE})
|
|
|
|
endforeach(FILE)
|
|
|
|
|