Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
dae22758
Commit
dae22758
authored
6 years ago
by
David Vojtek
Browse files
Options
Downloads
Patches
Plain Diff
Boost_unit_tests
parent
423b66d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
src/CMakeLists.txt
+10
-1
10 additions, 1 deletion
src/CMakeLists.txt
src/tests/boost_test_lib_dummy.cpp
+6
-0
6 additions, 0 deletions
src/tests/boost_test_lib_dummy.cpp
with
21 additions
and
1 deletion
CMakeLists.txt
+
5
−
0
View file @
dae22758
...
@@ -40,6 +40,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
...
@@ -40,6 +40,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
# Automatic settings #
# Automatic settings #
#--------------------#
#--------------------#
#get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)
#get_filename_component (Fortran_COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME)
set
(
CMAKE_VERBOSE_MAKEFILE ON
)
# Processing user variables
# Processing user variables
if
(
WITH_TIME_PROFILING
)
if
(
WITH_TIME_PROFILING
)
...
@@ -85,3 +86,7 @@ else ()
...
@@ -85,3 +86,7 @@ else ()
message
(
"Not Windows"
)
message
(
"Not Windows"
)
endif
()
endif
()
find_package
(
Boost COMPONENTS unit_test_framework REQUIRED
)
IF
(
Boost_FOUND
)
include_directories
(
${
Boost_INCLUDE_DIR
}
)
endif
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
10
−
1
View file @
dae22758
...
@@ -26,6 +26,15 @@ add_library(particle_swarm SHARED
...
@@ -26,6 +26,15 @@ add_library(particle_swarm SHARED
LearningMethods/ParticleSwarm.cpp
LearningMethods/ParticleSwarm.cpp
LearningMethods/ParticleSwarm.h
)
LearningMethods/ParticleSwarm.h
)
add_library
(
boost_unit_test SHARED tests/boost_test_lib_dummy.cpp
)
add_executable
(
neuron_test tests/neuron_test.cpp
)
target_link_libraries
(
neuron_test boost_unit_test neuron
)
add_executable
(
linear_neuron_test tests/NeuronLinear_test.cpp
)
target_link_libraries
(
linear_neuron_test boost_unit_test neuron
)
add_executable
(
test_cases main.cpp
)
add_executable
(
test_cases main.cpp
)
target_link_libraries
(
test_cases neuron particle_swarm boost_serialization
)
target_link_libraries
(
test_cases neuron particle_swarm boost_serialization
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/tests/boost_test_lib_dummy.cpp
0 → 100644
+
6
−
0
View file @
dae22758
//
// Created by David on 11.07.2018.
//
#define BOOST_TEST_MODULE neuron_test
#include
<boost/test/included/unit_test.hpp>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment