chiaki/cli/CMakeLists.txt
Florian Märkl 2b4a7426ff Install CLI
2021-04-11 18:11:35 +02:00

19 lines
458 B
CMake

set(SOURCE
include/chiaki-cli.h
src/discover.c
src/wakeup.c)
add_library(chiaki-cli-lib STATIC ${SOURCE})
target_include_directories(chiaki-cli-lib PUBLIC "include")
target_link_libraries(chiaki-cli-lib chiaki-lib)
if(CHIAKI_CLI_ARGP_STANDALONE)
find_package(Argp REQUIRED)
target_link_libraries(chiaki-cli-lib Argp::Argp)
endif()
add_executable(chiaki-cli src/main.c)
target_link_libraries(chiaki-cli chiaki-cli-lib)
install(TARGETS chiaki-cli)