mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-02-09 21:14:57 +08:00
12 lines
563 B
CMake
12 lines
563 B
CMake
include_directories(${PROJECT_SOURCE_DIR})
|
|
include_directories(${PROJECT_SOURCE_DIR}/src)
|
|
|
|
add_executable(cgattach cgattach.cpp ../src/cgroup_attach.cpp ../src/common.cpp)
|
|
install(TARGETS cgattach DESTINATION /usr/bin PERMISSIONS ${basic_permission})
|
|
|
|
if (with_execsnoop)
|
|
add_executable(execsnoop_exec execsnoop.cpp ../src/common.cpp ../src/execsnoop.cpp)
|
|
set_target_properties(execsnoop_exec PROPERTIES OUTPUT_NAME execsnoop)
|
|
target_link_libraries(execsnoop_exec bcc)
|
|
install(TARGETS execsnoop_exec DESTINATION /usr/bin PERMISSIONS ${basic_permission})
|
|
endif() |