迁移(未编译通过)。
This commit is contained in:
30
CMakeLists.txt
Normal file
30
CMakeLists.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(how_cpp_work LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
if (MSVC)
|
||||
add_compile_options(/utf-8)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
add_definitions(-D_WIN32_WINNT=0x0601)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/)
|
||||
|
||||
add_definitions(-DFMT_HEADER_ONLY)
|
||||
|
||||
set(Boost_NO_WARN_NEW_VERSIONS 1)
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
include_directories(${Boost_INCLUDE_DIR})
|
||||
|
||||
find_package(Boost COMPONENTS filesystem locale)
|
||||
|
||||
# add_executable(how_cpp_work main.cpp read_config.h read_config.cpp exec_cmd.h exec_cmd.cpp)
|
||||
# target_link_libraries(how_cpp_work PRIVATE ${Boost_LIBRARIES} ntdll)
|
||||
|
||||
add_subdirectory(task)
|
||||
add_subdirectory(coroutine)
|
||||
Reference in New Issue
Block a user