From 77984b14a65c0a7387c97f3d36f947dd17358744 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 5 Nov 2018 13:54:40 -0800 Subject: fixes #577 target library dependencies should be public This is a significant refactor of the library configuration. We use the modern package configuration helper, with a template script that also does the find_package dance for any of our dependencies. We also have restructured the code so that most protocols and transports have their configuration isolated to their own CMakeLists file, reducing the size of the global CMakeLists file. --- perf/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'perf') diff --git a/perf/CMakeLists.txt b/perf/CMakeLists.txt index 83e08e88..64bc3b34 100644 --- a/perf/CMakeLists.txt +++ b/perf/CMakeLists.txt @@ -4,6 +4,7 @@ # Copyright (c) 2015-2016 Jack R. Dunaway. All rights reserved. # Copyright 2016 Garrett D'Amore # Copyright 2016 Franklin "Snaipe" Mathieu +# Copyright 2018 Staysail Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), @@ -24,7 +25,7 @@ # IN THE SOFTWARE. # -# Build unit tests. +# Build performance tests. include_directories(AFTER SYSTEM ${PROJECT_SOURCE_DIR}/src) @@ -32,11 +33,7 @@ if (NNG_TESTS) macro (add_nng_perf NAME) add_executable (${NAME} perf.c) target_link_libraries (${NAME} ${PROJECT_NAME}) - target_link_libraries (${NAME} ${NNG_REQUIRED_LIBRARIES}) target_compile_definitions(${NAME} PUBLIC) - if (CMAKE_THREAD_LIBS_INIT) - target_link_libraries (${NAME} "${CMAKE_THREAD_LIBS_INIT}") - endif() endmacro (add_nng_perf) add_nng_perf(remote_lat) -- cgit v1.2.3-70-g09d2