25 lines
682 B
CMake
25 lines
682 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(RelayFile VERSION 0.1.0 LANGUAGES CXX)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
if (MSVC)
|
|
add_compile_options(/utf-8)
|
|
endif()
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "d")
|
|
message(STATUS "System: ${CMAKE_SYSTEM_NAME}")
|
|
message(STATUS "Compiler CXX ID: ${CMAKE_CXX_COMPILER_ID}")
|
|
|
|
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
|
|
|
|
include_directories(3rd)
|
|
|
|
add_subdirectory(ClientCore)
|
|
add_subdirectory(Util)
|
|
add_subdirectory(Protocol)
|
|
add_subdirectory(UserInterface)
|
|
add_subdirectory(RelayServer)
|
|
add_subdirectory(Test) |