CMake/Tests/RunCMake/Diab/diab-lib.cmake
Sanjiv Gupta 7624d0110b Diab: Add tests covering the Diab toolchains
Run the tests only if enabled explicitly by an undocumented cache
entry.  We will enable it on hosts known to have the toolchains.

Closes: #26735
2025-03-18 13:18:55 -04:00

8 lines
243 B
CMake

enable_language(C)
add_library(diab-test-lib libmod.c)
add_executable(exec-lib-c module.c)
target_compile_options(exec-lib-c)
target_compile_definitions(exec-lib-c PRIVATE __USE_LIBFUN)
target_link_libraries(exec-lib-c PRIVATE diab-test-lib)