-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 1.04 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
cmake_minimum_required (VERSION 3.8 FATAL_ERROR)
find_program (CLANG_TIDY_EXE NAMES "clang-tidy")
if (CLANG_TIDY_EXE)
set (CMAKE_CXX_CLANG_TIDY clang-tidy)
endif ()
set (CMAKE_CXX_STANDARD 17)
project (panann)
include_directories (${PROJECT_SOURCE_DIR}/src)
set (LIB_SOURCES
${PROJECT_SOURCE_DIR}/src/ActivationFunction.cc
${PROJECT_SOURCE_DIR}/src/FeedForwardNeuralNetwork.cc
${PROJECT_SOURCE_DIR}/src/MultiLayerNeuralTopology.cc
${PROJECT_SOURCE_DIR}/src/NeuronContainer.cc
${PROJECT_SOURCE_DIR}/src/Perceptron.cc
${PROJECT_SOURCE_DIR}/src/RandomWrapper.cc
${PROJECT_SOURCE_DIR}/src/RecurrentNeuralNetwork.cc
${PROJECT_SOURCE_DIR}/src/TrainingData.cc)
add_library (panann STATIC ${LIB_SOURCES})
set (TEST_SOURCES ${PROJECT_SOURCE_DIR}/test/test.cc)
add_executable (panann_test ${TEST_SOURCES})
target_link_libraries (panann_test panann)
if (MSVC)
# disable some benign warnings on MSVC
add_compile_options ("/Wall;/wd4514;/wd4625;/wd4626;/wd5026;/wd5027;/wd5045;/wd4710;/wd4820;")
else ()
add_compile_options ("-Wall;")
endif ()