aboutsummaryrefslogtreecommitdiff
path: root/src/mirror/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mirror/CMakeLists.txt')
-rw-r--r--src/mirror/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mirror/CMakeLists.txt b/src/mirror/CMakeLists.txt
new file mode 100644
index 0000000..6d0b114
--- /dev/null
+++ b/src/mirror/CMakeLists.txt
@@ -0,0 +1,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})