2017-04-03 18:08:12 +02:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(hermit_tools)
|
|
|
|
|
|
|
|
include(../cmake/HermitCore-Paths.cmake)
|
|
|
|
|
|
|
|
add_compile_options(-std=c99)
|
|
|
|
|
2018-01-16 11:59:04 +01:00
|
|
|
add_executable(proxy proxy.c utils.c uhyve.c uhyve-ibv.c uhyve-net.c)
|
2017-04-18 10:00:12 +02:00
|
|
|
target_compile_options(proxy PUBLIC -pthread)
|
2017-11-07 19:51:57 -05:00
|
|
|
target_compile_options(proxy PUBLIC -DMAX_ARGC_ENVC=${MAX_ARGC_ENVC})
|
2018-01-04 16:47:02 +01:00
|
|
|
target_link_libraries(proxy pthread dl ibverbs)
|
2017-04-03 18:08:12 +02:00
|
|
|
|
|
|
|
install(TARGETS proxy
|
|
|
|
DESTINATION bin)
|
|
|
|
|
|
|
|
install(FILES init.sh
|
|
|
|
DESTINATION tools)
|
|
|
|
|
|
|
|
# Show include files in IDE
|
|
|
|
file(GLOB_RECURSE TOOLS_INCLUDES "*.h")
|
|
|
|
add_custom_target(tools_includes_ide SOURCES ${TOOLS_INCLUDES})
|