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
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

19 lines
413 B
CMake

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()