nats.zig/deps/nats.c/test/dylib/CMakeLists.txt

18 lines
362 B
CMake
Raw Normal View History

if(NOT BUILD_TESTING)
return()
endif()
if(NOT NATS_BUILD_LIB_SHARED)
return()
endif()
# We need this to build the test program
include_directories(${PROJECT_SOURCE_DIR}/src)
# Build the test program
add_executable(nonats nonats.c)
# Link dynamically with the library
add_definitions(-Dnats_IMPORTS)
target_link_libraries(nonats nats ${NATS_EXTRA_LIB})