Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ОБЩИЙ ЛИСТ
- cmake_minimum_required(VERSION 3.10)
- project (Network_Prog_Pract)
- if (MSVC)
- set(CMAKE_CXX_STANDARD 20)
- else()
- set(CMAKE_CXX_STANDARD 17)
- endif()
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- set(CMAKE_CXX_EXTENSIONS OFF)
- if (WIN32)
- set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib;.a;${CMAKE_FIND_LIBRARY_SUFFIXES}")
- else()
- # BUGGY!
- # set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;${CMAKE_FIND_LIBRARY_SUFFIXES}")
- endif()
- set(Boost_USE_STATIC_LIBS ON)
- set(LINK_SEARCH_START_STATIC ON)
- #set(LINK_SEARCH_END_STATIC ON)
- set(BUILD_SHARED_LIBS OFF)
- # set(CMAKE_EXE_LINKER_FLAGS "-static")
- #file(GLOB lessons LIST_DIRECTORIES true "l[1-9]")
- add_subdirectory(dns_resolv)
- add_subdirectory(udp_server)
- add_subdirectory(socket_wrap)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement