CMakeLists.txt 2.54 KB
Newer Older
Martin Beseda's avatar
Martin Beseda committed
1
#TODO make atomic libraries AND also one large library containing all others + one large header
2

3
add_library(4neuro SHARED
4
5
6
7
8
9
10
11
12
13
14
        Neuron/Neuron.cpp
        Neuron/NeuronBinary.cpp
        Neuron/NeuronLinear.cpp
        Neuron/NeuronLogistic.cpp
        Neuron/NeuronTanh.cpp
        NetConnection/Connection.cpp
        Network/NeuralNetwork.cpp
        Neuron/NeuronNeuralNet.cpp
        NetConnection/ConnectionWeight.cpp
        NetConnection/ConnectionWeightIdentity.cpp
        LearningMethods/ParticleSwarm.cpp
15
16
        DataSet/DataSet.cpp
        ErrorFunction/ErrorFunctions.cpp)
David Vojtek's avatar
David Vojtek committed
17

18
target_link_libraries(4neuro boost_serialization)
19

20
add_library(boost_unit_test SHARED tests/boost_test_lib_dummy.cpp)
Martin Beseda's avatar
Martin Beseda committed
21

22
23
24
25
############
# EXAMPLES #
############
add_executable(test_cases main.cpp)
26
target_link_libraries(test_cases 4neuro)
27

28
add_executable(neuron_serialization_example neuron_serialization_example.cpp)
29
target_link_libraries(neuron_serialization_example 4neuro)
30

Martin Beseda's avatar
Martin Beseda committed
31
add_executable(net_test_1 net_test_1.cpp)
32
target_link_libraries(net_test_1 4neuro)
Martin Beseda's avatar
Martin Beseda committed
33

34
35
36
37
38
##############
# UNIT TESTS #
##############
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unit-tests)

David Vojtek's avatar
David Vojtek committed
39
add_executable(neuron_test tests/neuron_test.cpp)
40
target_link_libraries(neuron_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
41

David Vojtek's avatar
David Vojtek committed
42
add_executable(linear_neuron_test tests/NeuronLinear_test.cpp)
43
target_link_libraries(linear_neuron_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
44

David Vojtek's avatar
David Vojtek committed
45
add_executable(binary_neuron_test tests/NeuronBinary_test.cpp)
46
target_link_libraries(binary_neuron_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
47
48

add_executable(logistic_neuron_test tests/NeuronLogistic_test.cpp)
49
target_link_libraries(logistic_neuron_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
50
51

add_executable(tanh_neuron_test tests/NeuronTanh.cpp)
52
target_link_libraries(tanh_neuron_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
53
54

add_executable(connection_weight_test tests/ConnectionWeight_test.cpp)
55
target_link_libraries(connection_weight_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
56
57

add_executable(connection_test tests/Connection_test.cpp)
58
target_link_libraries(connection_test boost_unit_test 4neuro)
59

David Vojtek's avatar
David Vojtek committed
60
add_executable(neural_network_test tests/NeuralNetwork_test.cpp)
61
target_link_libraries(neural_network_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
62
63

add_executable(connection_weight_identity_test tests/ConnectionWeightIdentity_test.cpp)
64
target_link_libraries(connection_weight_identity_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
65
66

add_executable(particle_swarm_test tests/ParticleSwarm_test.cpp)
67
target_link_libraries(particle_swarm_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
68
69

add_executable(particle_test tests/Particle_test.cpp)
70
target_link_libraries(particle_test boost_unit_test 4neuro)
David Vojtek's avatar
David Vojtek committed
71

72

David Vojtek's avatar
David Vojtek committed
73