5 Star 0 Fork 1

我爱肥仔快乐水/uesdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.0)
project(UESDK)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O0 -ggdb -Wall -Wno-deprecated -Werror -Wno-unused-function -Wno-builtin-macro-redefined -Wno-unused-local-typedefs")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/depends_libs/curl/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/depends_libs/curl/bin)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/depends_libs/curl/lib)
include(CMake/utils.cmake)
set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")
include_directories("D:/PROJECTSUPPORT/boost_1_78_0")
# set(BOOST_ROOT "D:/PROJECTSUPPORT/boost_mingw530_32/lib")
# set(Boost_COMPILER -mgw53)
# # set(Boost_DEBUG ON)
# find_package(Boost COMPONENTS thread system serialization REQUIRED)
# if(Boost_FOUND)
# message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
# message(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
# message(STATUS "Boost_VERSION: ${Boost_VERSION}")
# message(STATUS "Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
# link_directories(${Boost_LIBRARY_DIRS})
# include_directories(${Boost_INCLUDE_DIRS})
# endif()
# add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
add_definitions(-DBOOST_USE_WINDOWS_H)
set(
LIB_SRC
uesdk/http/http.cc
uesdk/http/http_connect.cc
uesdk/cJSON.cc
uesdk/user_manger.cc
uesdk/utils.cc
)
set(
LIBS
uesdk
curl
${Boost_LIBRARIES}
)
add_library(uesdk SHARED ${LIB_SRC})
target_link_libraries(uesdk curl )
target_link_libraries(uesdk ${Boost_LIBRARIES})
add_executable(test_main test/test_main.cc)
uesdk_add_executable(test_connect "test/test_connect.cc" uesdk "${LIBS}")
uesdk_add_executable(test_user_login "test/test_user_login.cc" uesdk "${LIBS}")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/waitch/uesdk.git
[email protected]:waitch/uesdk.git
waitch
uesdk
uesdk
master

搜索帮助