Skip to content

Commit

Permalink
👷 Use target_sources with FILE_SET
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeno committed Sep 6, 2024
1 parent c873a9d commit 97c83d1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ add_versioned_package("gh:intel/cpp-std-extensions#dc6352e")

add_library(concurrency INTERFACE)
target_compile_features(concurrency INTERFACE cxx_std_20)
target_include_directories(concurrency INTERFACE include/)
target_link_libraries_system(concurrency INTERFACE stdx)

target_sources(
concurrency
INTERFACE FILE_SET
concurrency
TYPE
HEADERS
BASE_DIRS
include
FILES
include/conc/concepts.hpp
include/conc/concurrency.hpp)

if(PROJECT_IS_TOP_LEVEL)
add_docs(docs)
clang_tidy_interface(concurrency)
Expand Down

0 comments on commit 97c83d1

Please sign in to comment.