subrepo: subdir: "deps/nats.c" merged: "66cec7f" upstream: origin: "https://github.com/nats-io/nats.c.git" branch: "v3.6.1" commit: "66cec7f" git-subrepo: version: "0.4.6" commit: "b8b46501e"
18 lines
362 B
CMake
18 lines
362 B
CMake
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})
|