This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/flasy/CMakeLists.txt

19 lines
413 B
CMake
Raw Normal View History

add_library(flasy
flasy.c
)
target_link_libraries(flasy
memory
tinycthread
)
if (BUILD_TESTING)
add_executable(flasy-test test.c)
target_link_libraries(flasy-test flasy)
set(workdir "${CMAKE_CURRENT_BINARY_DIR}/test")
file(MAKE_DIRECTORY ${workdir})
add_test(
NAME flasy-test
COMMAND bash -c "../flasy-test $(seq 9)"
WORKING_DIRECTORY ${workdir})
endif()