From 6e4094a65408e6b4784f0841ab6b1072c018d266 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Wed, 11 Jul 2018 16:36:39 +0200 Subject: [PATCH] FIX: Fixed compilation --- CMakeLists.txt | 3 ++- src/tests/NeuronLinear_test.cpp | 3 +-- src/tests/neuron_test.cpp | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a75a7222..bf1cceb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,8 @@ else () message ("Not Windows") endif () -find_package(Boost COMPONENTS unit_test_framework REQUIRED) +#find_package(Boost COMPONENTS unit_test_framework REQUIRED) IF (Boost_FOUND) + message("Boost DIR: " ${Boost_INCLUDE_DIR}) include_directories(${Boost_INCLUDE_DIR}) endif() \ No newline at end of file diff --git a/src/tests/NeuronLinear_test.cpp b/src/tests/NeuronLinear_test.cpp index f8b97404..af9274c1 100644 --- a/src/tests/NeuronLinear_test.cpp +++ b/src/tests/NeuronLinear_test.cpp @@ -4,8 +4,7 @@ * @author David Vojtek * @date 2018 */ -#define BOOST_TEST_DYN_LINK -#define BOOST_TEST_MODULE neuronLinear_test + #include <boost/test/unit_test.hpp> #include "../Neuron/NeuronLinear.h" diff --git a/src/tests/neuron_test.cpp b/src/tests/neuron_test.cpp index 01b93c8e..1453d57d 100644 --- a/src/tests/neuron_test.cpp +++ b/src/tests/neuron_test.cpp @@ -5,9 +5,6 @@ * @date 2018 */ -#define BOOST_TEST_DYN_LINK - -#define BOOST_TEST_MODULE neuron_test #include <boost/test/unit_test.hpp> #include "../Neuron/Neuron.h" #include "../Neuron/NeuronLinear.h" -- GitLab