Advertisement
Vlad3955

CMakeLists.txt

Oct 5th, 2022 (edited)
2,681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.74 KB | None | 0 0
  1. # ОБЩИЙ ЛИСТ
  2. cmake_minimum_required(VERSION 3.10)
  3.  
  4. project (Network_Prog_Pract)
  5.  
  6. if (MSVC)
  7.     set(CMAKE_CXX_STANDARD 20)
  8. else()
  9.     set(CMAKE_CXX_STANDARD 17)
  10. endif()
  11. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  12. set(CMAKE_CXX_EXTENSIONS OFF)
  13.  
  14. if (WIN32)
  15.     set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib;.a;${CMAKE_FIND_LIBRARY_SUFFIXES}")
  16. else()
  17. # BUGGY!
  18. #    set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;${CMAKE_FIND_LIBRARY_SUFFIXES}")
  19. endif()
  20.  
  21. set(Boost_USE_STATIC_LIBS ON)
  22. set(LINK_SEARCH_START_STATIC ON)
  23. #set(LINK_SEARCH_END_STATIC ON)
  24. set(BUILD_SHARED_LIBS OFF)
  25. # set(CMAKE_EXE_LINKER_FLAGS "-static")
  26.  
  27. #file(GLOB lessons LIST_DIRECTORIES true "l[1-9]")
  28. add_subdirectory(dns_resolv)
  29. add_subdirectory(udp_server)
  30. add_subdirectory(socket_wrap)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement