-
Notifications
You must be signed in to change notification settings - Fork 876
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run all CMakeLists.txt files through cmake-format
This touches CMakeLists.txt files that I did not change in this PR as well. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
- Loading branch information
Showing
12 changed files
with
848 additions
and
618 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# Note: list of rules is created at cmake time, not build time | ||
file(GLOB test_rule_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../test/rules/*.yaml") | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../test/rules/*.yaml") | ||
|
||
foreach(rule_file_path ${test_rule_files}) | ||
get_filename_component(rule_file ${rule_file_path} NAME) | ||
add_custom_target(docker-local-rule-${rule_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${rule_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${rule_file} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${rule_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${rule_file} | ||
DEPENDS ${rule_file_path}) | ||
get_filename_component(rule_file ${rule_file_path} NAME) | ||
add_custom_target(docker-local-rule-${rule_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${rule_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${rule_file} | ||
COMMAND ${CMAKE_COMMAND} | ||
-E | ||
copy | ||
${rule_file_path} | ||
${CMAKE_CURRENT_BINARY_DIR}/${rule_file} | ||
DEPENDS ${rule_file_path}) | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# Note: list of traces is created at cmake time, not build time | ||
file(GLOB test_trace_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../test/trace_files/*.scap") | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../test/trace_files/*.scap") | ||
|
||
foreach(trace_file_path ${test_trace_files}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(docker-local-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${trace_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(docker-local-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} | ||
-E | ||
copy | ||
${trace_file_path} | ||
${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
add_subdirectory(k8s_audit) | ||
add_subdirectory(psp) | ||
# Note: list of traces is created at cmake time, not build time | ||
file(GLOB test_trace_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.scap") | ||
file(GLOB test_trace_files "${CMAKE_CURRENT_SOURCE_DIR}/*.scap") | ||
|
||
foreach(trace_file_path ${test_trace_files}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${trace_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} | ||
-E | ||
copy | ||
${trace_file_path} | ||
${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Note: list of traces is created at cmake time, not build time | ||
file(GLOB test_trace_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.json") | ||
file(GLOB test_trace_files "${CMAKE_CURRENT_SOURCE_DIR}/*.json") | ||
|
||
foreach(trace_file_path ${test_trace_files}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${trace_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} | ||
-E | ||
copy | ||
${trace_file_path} | ||
${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
# Note: list of traces is created at cmake time, not build time | ||
file(GLOB test_trace_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.json" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.scap") | ||
file(GLOB | ||
test_trace_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.json" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/*.scap") | ||
|
||
foreach(trace_file_path ${test_trace_files}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${trace_file_path} ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
get_filename_component(trace_file ${trace_file_path} NAME) | ||
add_custom_target(test-trace-${trace_file} ALL | ||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${trace_file}) | ||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
COMMAND ${CMAKE_COMMAND} | ||
-E | ||
copy | ||
${trace_file_path} | ||
${CMAKE_CURRENT_BINARY_DIR}/${trace_file} | ||
DEPENDS ${trace_file_path}) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.