11 lines
316 B
CMake
11 lines
316 B
CMake
project(test-io)
|
|
|
|
|
|
add_executable(${PROJECT_NAME}-file test-lt-file.c)
|
|
target_link_libraries(${PROJECT_NAME}-file latch)
|
|
|
|
if(UNIX)
|
|
add_test(${PROJECT_NAME}-file ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-file)
|
|
elseif(WIN32)
|
|
add_test(${PROJECT_NAME}-file ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-file.exe)
|
|
endif() |