Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Apr 12, 2024
1 parent 26bcf17 commit dc7fe99
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions userspace/sysdig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if(USE_BUNDLED_DEPS)
add_dependencies(csysdig njson)
add_dependencies(sysdig yaml-cpp)
add_dependencies(csysdig yaml-cpp)
if(NOT WIN32)
if(WITH_CHISEL)
add_dependencies(sysdig luajit)
add_dependencies(csysdig luajit)
endif()
Expand All @@ -94,6 +94,7 @@ target_include_directories(
PUBLIC
"${YAMLCPP_INCLUDE_DIR}"
"${NJSON_INCLUDE_DIR}"
"${LUAJIT_INCLUDE}"
../chisel
..
)
Expand All @@ -103,6 +104,7 @@ target_include_directories(
PUBLIC
"${YAMLCPP_INCLUDE_DIR}"
"${NJSON_INCLUDE_DIR}"
"${LUAJIT_INCLUDE}"
../chisel
..
)
Expand Down Expand Up @@ -144,20 +146,22 @@ else()

target_link_libraries(sysdig
sinsp
"${LUAJIT_LIB}"
"${YAMLCPP_LIB}")

target_link_libraries(csysdig
sinsp
"${LUAJIT_LIB}"
"${YAMLCPP_LIB}")

target_link_libraries(sysdig odbc32.lib odbccp32.lib Netapi32.lib Iphlpapi.lib)

target_link_libraries(csysdig odbc32.lib odbccp32.lib Netapi32.lib Iphlpapi.lib)

add_custom_command(TARGET sysdig POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
"${LUAJIT_SRC}/lua51.dll"
"${PROJECT_BINARY_DIR}/$(Configuration)/lua51.dll")
#add_custom_command(TARGET sysdig POST_BUILD
# COMMAND "${CMAKE_COMMAND}" -E copy_if_different
# "${LUAJIT_SRC}/lua51.dll"
# "${PROJECT_BINARY_DIR}/$(Configuration)/lua51.dll")

add_custom_command(TARGET sysdig POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_directory
Expand Down Expand Up @@ -186,9 +190,9 @@ else()
DESTINATION programs
COMPONENT "${SYSDIG_COMPONENT_NAME}")

install(FILES "${LUAJIT_SRC}/lua51.dll"
DESTINATION programs
COMPONENT "${SYSDIG_COMPONENT_NAME}")
#install(FILES "${LUAJIT_SRC}/lua51.dll"
# DESTINATION programs
# COMPONENT "${SYSDIG_COMPONENT_NAME}")

endif()

Expand Down

0 comments on commit dc7fe99

Please sign in to comment.