From e73e86c971d0b8bf45bf80ea7457ddf800b3d34d Mon Sep 17 00:00:00 2001 From: jason_w Date: Fri, 19 Jul 2024 08:53:32 +0000 Subject: [PATCH] perf: ignore test source files --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb98cd8..aa15c58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,8 @@ file(GLOB CYBER_SRCS ) list(FILTER CYBER_SRCS EXCLUDE REGEX .*test[.]cc) +list(FILTER CYBER_SRCS EXCLUDE REGEX .*/cyber/class_loader/test/*) +list(REMOVE_ITEM CYBER_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/cyber/class_loader/shared_library/sample.cc") add_library(${TARGET_NAME} SHARED ${CYBER_PROTO_SRCS} @@ -339,4 +341,3 @@ install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ) -