Commit 4d8ff0db authored by Martin Beseda's avatar Martin Beseda

ENH: Added compilation of DataSet + unit test are now being built in build/bin/unit-tests folder.

parent d8845f07
......@@ -28,6 +28,20 @@ add_library(particle_swarm SHARED
add_library(boost_unit_test SHARED tests/boost_test_lib_dummy.cpp)
add_library(data_set SHARED DataSet/DataSet.cpp)
target_link_libraries(data_set boost_serialization)
############
# EXAMPLES #
############
add_executable(test_cases main.cpp)
target_link_libraries(test_cases neuron particle_swarm boost_serialization data_set)
##############
# UNIT TESTS #
##############
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unit-tests)
add_executable(neuron_test tests/neuron_test.cpp)
target_link_libraries(neuron_test boost_unit_test neuron)
......@@ -61,6 +75,5 @@ target_link_libraries(particle_swarm_test boost_unit_test neuron particle_swarm)
add_executable(particle_test tests/Particle_test.cpp)
target_link_libraries(particle_test boost_unit_test neuron particle_swarm)
add_executable(test_cases main.cpp)
target_link_libraries(test_cases neuron particle_swarm boost_serialization)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment