@@ -12,9 +12,11 @@ include(FetchContent)
12
12
13
13
set (TARGETS_EXPORT_NAME ${CMAKE_PROJECT_NAME} Targets)
14
14
15
- option (OPTIONAL26_ENABLE_TESTING
16
- "Enable building tests and test infrastructure"
17
- ${PROJECT_IS_TOP_LEVEL} )
15
+ option (
16
+ OPTIONAL26_ENABLE_TESTING
17
+ "Enable building tests and test infrastructure"
18
+ ${PROJECT_IS_TOP_LEVEL}
19
+ )
18
20
19
21
# Build the tests if enabled via the option OPTIONAL26_ENABLE_TESTING
20
22
if (OPTIONAL26_ENABLE_TESTING)
@@ -31,24 +33,22 @@ endif()
31
33
32
34
# Create the library target and named header set for beman_optional26
33
35
add_library (beman_optional26 STATIC )
34
- target_sources (beman_optional26
35
- PUBLIC
36
- FILE_SET beman_optional26_headers TYPE HEADERS
37
- BASE_DIRS
38
- src
39
- include
36
+ target_sources (
37
+ beman_optional26
38
+ PUBLIC FILE_SET beman_optional26_headers TYPE HEADERS BASE_DIRS src include
40
39
)
41
40
42
41
if (OPTIONAL26_ENABLE_TESTING)
43
- # Create the library target and named header set for testing beman_optional26
44
- # and mark the set private
45
- add_executable (beman_optional26_test)
46
- target_sources (beman_optional26_test
47
- PRIVATE
48
- FILE_SET beman_optional26_test_headers TYPE HEADERS
49
- BASE_DIRS
50
- src
51
- )
42
+ # Create the library target and named header set for testing beman_optional26
43
+ # and mark the set private
44
+ add_executable (beman_optional26_test)
45
+ target_sources (
46
+ beman_optional26_test
47
+ PRIVATE
48
+ FILE_SET beman_optional26_test_headers
49
+ TYPE HEADERS
50
+ BASE_DIRS src
51
+ )
52
52
endif ()
53
53
54
54
add_subdirectory (src/beman/optional26)
0 commit comments