-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (40 loc) · 1.73 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Test CMake version
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
# The name of the project
PROJECT(AI3)
MESSAGE(${PROJECT_NAME} ":")
# Use c++11
set (CMAKE_CXX_STANDARD 11)
# Set build type to release
SET(CMAKE_BUILD_TYPE Release)
MESSAGE("-- Build type: " ${CMAKE_BUILD_TYPE})
# Set .h includes
include_directories( Neuron/include PSN/include RK4/include SO2/include TransferFunction/include VRN/include)
#link_directories(tests)
# Output executables into bin/
set(EXECUTABLE_OUTPUT_PATH "../bin")
# Create transfer_function shared library
add_library(transfer_function SHARED TransferFunction/src/transfer_function.cpp)
# Create neuron shared library (basis)
add_library(neuron SHARED Neuron/src/neuron.cpp)
# Create shared libraries
add_library(psn SHARED PSN/src/psn.cpp)
add_library(rk4 SHARED RK4/src/rk4.cpp)
add_library(so2_cpg SHARED SO2/src/so2_cpg.cpp)
add_library(vrn SHARED VRN/src/vrn.cpp)
#link_directories(/usr/local/lib)
# Create executables:
add_executable(test_basic tests/test_basic.cpp)
target_link_libraries(test_basic transfer_function neuron so2_cpg)
add_executable(test_so2 tests/test_so2.cpp)
target_link_libraries(test_so2 transfer_function neuron so2_cpg)
add_executable(test_psn tests/test_psn.cpp)
target_link_libraries(test_psn transfer_function neuron so2_cpg psn)
add_executable(test_vrn tests/test_vrn.cpp)
target_link_libraries(test_vrn transfer_function neuron so2_cpg psn vrn)
add_executable(test_sine_rectification tests/test_sine_rectification.cpp)
target_link_libraries(test_sine_rectification transfer_function)
add_executable(test_so2_rectification tests/test_so2_rectification.cpp)
target_link_libraries(test_so2_rectification transfer_function neuron so2_cpg)
# Output end message
MESSAGE(${PROJECT_NAME} " done!")