mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-03-12 05:25:23 -07:00
19 lines
458 B
CMake
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)
|