blob: 6d0b114e61bbc4daa9ee40a85192d278e76e7835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
SET(FRONTEND_NAME "OFmirror")
if (NOT UNIX)
message(FATAL_ERROR "Mirroring is not supported on Windows")
endif()
SET(MIRROR_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/main.c
)
add_executable(${FRONTEND_NAME} ${MIRROR_SOURCES})
target_include_directories(${FRONTEND_NAME} PUBLIC ${JSONC_INCLUDE_DIRS})
target_compile_options(${FRONTEND_NAME} PUBLIC ${CFLAGS})
target_link_libraries(${FRONTEND_NAME} PRIVATE tvn)
target_link_libraries(${FRONTEND_NAME} PRIVATE threading)
target_link_libraries(${FRONTEND_NAME} LINK_PUBLIC ${JSONC_LIBRARIES})
install(TARGETS ${FRONTEND_NAME})
|