From 3b171566b1f3803afe1f0f117a98cc14f4d6d331 Mon Sep 17 00:00:00 2001 From: Emmanuel Benazera Date: Wed, 5 Jul 2023 23:07:00 +0200 Subject: [PATCH] chore: building tests with cmake --- README.md | 4 ++-- tests/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0d7e485f..bd71610f 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Implementation: The library makes use of C++ policy design for modularity, performance and putting the maximum burden on the checks at compile time. The implementation closely follows the algorithms described in (2), (6) and few other publications. ### Authors -libcmaes is designed and implemented by Emmanuel Benazera with help of Nikolaus Hansen, on behalf of Inria Saclay / Research group TAO and Laboratoir de l'Accélérateur linéaire, research group Appstats. +libcmaes was designed and implemented by Emmanuel Benazera with help of Nikolaus Hansen and contributors, on behalf of Inria Saclay / Research group TAO and Laboratoire de l'Accélérateur linéaire, research group Appstats. ### Build Below are instruction for Linux systems, for building on Mac OSX, see https://github.com/beniz/libcmaes/wiki/Building-libcmaes-on-Mac-OSX @@ -64,7 +64,7 @@ For compiling with CMake: ``` mkdir build cd build -cmake .. -DCMAKE_INSTALL_PREFIX=~/.local/ +cmake .. -DCMAKE_INSTALL_PREFIX=~/.local/ -DLIBCMAES_BUILD_TESTS=ON make -j2 make install ``` diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9c179bb4..cf8620b6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ macro (cmaes_add_test name) - add_executable (t_${name} ${name}.cc) - target_link_libraries (t_${name} cmaes gflags) + add_executable (${name} ${name}.cc) + target_link_libraries (${name} cmaes gflags) add_test (NAME ${name} COMMAND t_${name}) if (WIN32) set_tests_properties (