Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
CMakeLists.txt - specify used libs as PRIVATE
Browse files Browse the repository at this point in the history
  • Loading branch information
GBuella committed May 21, 2017
1 parent f35f9e7 commit 4b3a677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

add_library(icap SHARED icap.c)

target_link_libraries(icap syscall_intercept_shared)
target_link_libraries(icap PRIVATE syscall_intercept_shared)

add_library(fork_ban SHARED fork_ban.c)

target_link_libraries(fork_ban syscall_intercept_shared)
target_link_libraries(fork_ban PRIVATE syscall_intercept_shared)
8 changes: 4 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(CMAKE_ASM_CREATE_SHARED_LIBRARY ${CMAKE_C_CREATE_SHARED_LIBRARY})

add_executable(asm_pattern asm_pattern.c)
target_link_libraries(asm_pattern
${CMAKE_DL_LIBS} ${capstone_LDFLAGS}
PRIVATE ${CMAKE_DL_LIBS} ${capstone_LDFLAGS}
syscall_intercept_base_c syscall_intercept_base_asm)

set(asm_patterns
Expand Down Expand Up @@ -121,7 +121,7 @@ add_test(NAME "logging"

add_executable(hook_test hook_test.c)
add_library(hook_test_preload SHARED hook_test_preload.c)
target_link_libraries(hook_test_preload syscall_intercept_shared)
target_link_libraries(hook_test_preload PRIVATE syscall_intercept_shared)
add_test(NAME "hook"
COMMAND ${CMAKE_COMMAND}
-DTEST_NAME=hook
Expand All @@ -132,7 +132,7 @@ add_test(NAME "hook"
${CHECK_LOG_COMMON_ARGS})

add_library(hook_test_clone_preload SHARED hook_test_clone_preload.c)
target_link_libraries(hook_test_clone_preload syscall_intercept_shared)
target_link_libraries(hook_test_clone_preload PRIVATE syscall_intercept_shared)
add_test(NAME "hook_clone"
COMMAND ${CMAKE_COMMAND}
-DTEST_NAME=hook_clone
Expand All @@ -145,7 +145,7 @@ add_test(NAME "hook_clone"
${CHECK_LOG_COMMON_ARGS})

add_executable(filter_test filter_test.c)
target_link_libraries(filter_test syscall_intercept_shared)
target_link_libraries(filter_test PRIVATE syscall_intercept_shared)

add_test(NAME "filter_none"
COMMAND ${CMAKE_COMMAND}
Expand Down

0 comments on commit 4b3a677

Please sign in to comment.