CMakeLists.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. cmake_minimum_required(VERSION 3.15)
  2. project(gblibstdc++)
  3. set(CMAKE_CXX_STANDARD 20)
  4. add_library(gblibstdc++ STATIC src/stdc++.cpp)
  5. set(GBSTDLIBCPP_PUBLIC_HEADERS
  6. gblibstdc++/include
  7. gblibstdc++/include/bit
  8. gblibstdc++/include/memory
  9. gblibstdc++/include/tuple
  10. gblibstdc++/include/type_traits
  11. gblibstdc++/include/algorithm
  12. gblibstdc++/include/cstddef
  13. gblibstdc++/include/map
  14. gblibstdc++/include/bits
  15. gblibstdc++/include/bits/compressed_pair
  16. gblibstdc++/include/bits/fwd_functional
  17. gblibstdc++/include/bits/rbtree
  18. gblibstdc++/include/bits/iter_ops
  19. gblibstdc++/include/bits/type_traits
  20. gblibstdc++/include/bits/type_traits/is_es
  21. gblibstdc++/include/bits/type_traits/remove_add
  22. gblibstdc++/include/bits/type_traits/base
  23. gblibstdc++/include/bits/tuple_tools
  24. gblibstdc++/include/bits/sequence
  25. gblibstdc++/include/bits/forward
  26. gblibstdc++/include/list
  27. gblibstdc++/include/initializer_list
  28. gblibstdc++/include/new
  29. gblibstdc++/include/queue
  30. gblibstdc++/include/string
  31. gblibstdc++/include/set
  32. gblibstdc++/include/vector
  33. gblibstdc++/include/functional
  34. gblibstdc++/include/utility
  35. )
  36. target_include_directories(gblibstdc++ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
  37. set_target_properties(gblibstdc++ PROPERTIES PUBLIC_HEADER "${GBSTDLIBCPP_PUBLIC_HEADERS}")