diff --git a/CMakeLists.txt b/CMakeLists.txt index 72abf7d..4464d9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,15 +22,56 @@ if(NOT DEFINED CMAKE_CXX_STANDARD) endif() add_library(stdx INTERFACE) -target_include_directories(stdx INTERFACE include) target_compile_features(stdx INTERFACE cxx_std_${CMAKE_CXX_STANDARD}) target_compile_options( - stdx - INTERFACE - $<$:-Wno-gnu-string-literal-operator-template> - $<$:-Wno-missing-braces>) + stdx INTERFACE $<$:-Wno-missing-braces>) target_link_libraries_system(stdx INTERFACE boost_mp11 fmt::fmt-header-only) +target_sources( + stdx + INTERFACE FILE_SET + stdx + TYPE + HEADERS + BASE_DIRS + include + FILES + include/stdx/algorithm.hpp + include/stdx/bit.hpp + include/stdx/bitset.hpp + include/stdx/byterator.hpp + include/stdx/cached.hpp + include/stdx/compiler.hpp + include/stdx/concepts.hpp + include/stdx/ct_conversions.hpp + include/stdx/ct_format.hpp + include/stdx/ct_string.hpp + include/stdx/cx_map.hpp + include/stdx/cx_multimap.hpp + include/stdx/cx_queue.hpp + include/stdx/cx_set.hpp + include/stdx/cx_vector.hpp + include/stdx/detail/list_common.hpp + include/stdx/for_each_n_args.hpp + include/stdx/functional.hpp + include/stdx/function_traits.hpp + include/stdx/intrusive_forward_list.hpp + include/stdx/intrusive_list.hpp + include/stdx/iterator.hpp + include/stdx/memory.hpp + include/stdx/numeric.hpp + include/stdx/optional.hpp + include/stdx/panic.hpp + include/stdx/priority.hpp + include/stdx/ranges.hpp + include/stdx/span.hpp + include/stdx/tuple_algorithms.hpp + include/stdx/tuple_destructure.hpp + include/stdx/tuple.hpp + include/stdx/type_traits.hpp + include/stdx/udls.hpp + include/stdx/utility.hpp) + if(PROJECT_IS_TOP_LEVEL) add_docs(docs) add_subdirectory(test)