aboutsummaryrefslogtreecommitdiff
path: root/src/cli/CMakeLists.txt
blob: 38e5e130092bfdd402b61a850719697a897f9c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SET(FRONTEND_NAME "OFCL")

SET(CLI_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/commands.c
    ${CMAKE_CURRENT_SOURCE_DIR}/commands.h
    ${CMAKE_CURRENT_SOURCE_DIR}/main.c
    ${CMAKE_CURRENT_SOURCE_DIR}/updater.c
    ${CMAKE_CURRENT_SOURCE_DIR}/updater.h
)

set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_executable(${FRONTEND_NAME} ${CLI_SOURCES})
target_link_libraries(${FRONTEND_NAME} PRIVATE tvn)
target_link_libraries(${FRONTEND_NAME} PRIVATE Threads::Threads)
install(TARGETS ${FRONTEND_NAME})