Distribution_Service/CMakeLists.txt

43 lines
1.2 KiB
CMake
Raw Permalink Normal View History

2025-11-11 17:36:25 +08:00
cmake_minimum_required(VERSION 4.0)
project(Distribution_Service)
2025-12-03 18:08:23 +08:00
set(ZLIB ON)
2025-11-11 17:46:19 +08:00
add_subdirectory(CC_SDK)
2025-11-11 17:36:25 +08:00
set(CMAKE_CXX_STANDARD 17)
2025-11-11 18:09:51 +08:00
add_executable(Distribution_Service main.cpp
Server/ThreadMain/MainThread.h
Server/Configuration/Config.cpp
Server/Configuration/Config.h
Server/PortService/Routing.cpp
2025-12-03 18:08:23 +08:00
Server/PortService/Routing.h
Server/PortService/R_Order_AA.h
Server/Terminal/Terminal.cpp
Server/Terminal/Terminal.h
Server/ThreadMain/ConnectionService.cpp
Server/ThreadMain/ConnectionService.h
2025-12-04 18:12:54 +08:00
Server/Task/TaskInfo.cpp
Server/Task/TaskInfo.h
Server/Task/PushFlowTask.h
Server/Task/PushFlowTask.cpp
2025-12-05 16:46:23 +08:00
Server/NetInfo/NetWork.h
2025-12-03 18:08:23 +08:00
)
set_target_properties(Distribution_Service PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
2025-11-11 17:46:19 +08:00
target_link_libraries(Distribution_Service PUBLIC CC_API)
2025-12-03 18:08:23 +08:00
2025-12-04 18:12:54 +08:00
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm|ARM|Armv[0-9]+")
target_link_libraries(Distribution_Service PUBLIC stdc++fs)
endif ()
2025-11-11 18:09:51 +08:00
target_include_directories(Distribution_Service PUBLIC
${CC_API_INC}
Server
Server/Configuration
Server/ThreadMain
)