From 9ae959271e9b3ce030a06746b896c70d4d2d1ae0 Mon Sep 17 00:00:00 2001 From: SongWei Date: Fri, 14 Feb 2020 14:21:20 +1100 Subject: [PATCH] cmake --- c/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt index 8402fac..74ac873 100644 --- a/c/CMakeLists.txt +++ b/c/CMakeLists.txt @@ -1,3 +1,8 @@ +set(CURL_LIBRARY "-lcurl") +find_package(CURL REQUIRED) + add_library(leoext SHARED lib.c) +include_directories(${CURL_INCLUDE_DIR}) +target_link_libraries(leoext ${CURL_LIBRARIES}) set_target_properties(leoext PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")