Skip to content

Commit

Permalink
Distinguish library test config types based on sources
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed May 5, 2024
1 parent f62419d commit 1bee95a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ function(_configure_target target_name type)
add_executable(${target_name})
set(scope PRIVATE)
elseif(${type} STREQUAL "test_config")
add_library(${target_name} INTERFACE)
set(scope INTERFACE)
if(args_SOURCES)
add_library(${target_name} STATIC)
set(scope PUBLIC)
else()
add_library(${target_name} INTERFACE)
set(scope INTERFACE)
endif()
endif()

target_sources(${target_name}
Expand Down

0 comments on commit 1bee95a

Please sign in to comment.