21 lines
448 B
CMake
21 lines
448 B
CMake
# azeron-cli - Command-line tool for Azeron configuration
|
|
|
|
set(AZERON_CLI_SOURCES
|
|
main.c
|
|
commands.c
|
|
utils.c
|
|
)
|
|
|
|
add_executable(azeron-cli ${AZERON_CLI_SOURCES})
|
|
|
|
# Link libraries
|
|
target_link_libraries(azeron-cli azeron ${LIBUSB_LIBRARIES} ${JSON_LIBRARIES})
|
|
|
|
# Include directories
|
|
target_include_directories(azeron-cli PRIVATE ${CMAKE_SOURCE_DIR}/libazeron)
|
|
|
|
# Install executable
|
|
install(TARGETS azeron-cli
|
|
RUNTIME DESTINATION bin
|
|
)
|