EdgeGateway_FSU/DevicePortGet/web_src/CMakeLists.txt

16 lines
514 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#添加头文件目录(类是于 -I)
include_directories("../lib/goahead/include")
#添加需要链接的库文件目录(-L
link_directories("../lib/goahead/lib")
# 查找当前目录下的所有源文件,并将名称保存到 DIR_LIB_SRCS 变量
#aux_source_directory(. DIR_WEB_SRCS)
SET(DIR_WEB_SRCS fsu_web.c)
# 生成链接库
ADD_EXECUTABLE(fsu_web fsu_web.c)
TARGET_LINK_LIBRARIES(fsu_web libgo.so)
TARGET_LINK_LIBRARIES(fsu_web libgoahead-mbedtls.a)
TARGET_LINK_LIBRARIES(fsu_web rt;dl;pthread;m)