Zipfs-Law-Language-Detector/CMakeLists.txt
2024-10-10 22:37:54 -04:00

13 lines
478 B
CMake

cmake_minimum_required(VERSION 3.13)
project(zipfs)
set(OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/build/libzipfs-ld.a")
add_custom_command(
OUTPUT ${OUTPUT_FILE}
COMMAND "nim" "c" "-d:useMalloc" "--mm:arc" "-d:release" "--maxLoopIterationsVM:20000000" "--app:staticlib" "--o:${OUTPUT_FILE}" "nim/main"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building zipfs in the specified directory"
)
add_custom_target(build_zipfs ALL DEPENDS ${OUTPUT_FILE})