From 5f9d1eef27d257182302210f1e1e9ae020b75259 Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 7 Oct 2018 16:06:53 +0200 Subject: [PATCH] Added CMakeLists.txt --- CMakeLists.txt | 4 ++++ neuralnetdemo/CMakeLists.txt | 12 ++++++++++++ neuralnetlib/CMakeLists.txt | 25 +++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 neuralnetdemo/CMakeLists.txt create mode 100644 neuralnetlib/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..582b9c3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,4 @@ +project(DbNeuralNet) + +add_subdirectory(neuralnetdemo) +add_subdirectory(neuralnetlib) diff --git a/neuralnetdemo/CMakeLists.txt b/neuralnetdemo/CMakeLists.txt new file mode 100644 index 0000000..0153521 --- /dev/null +++ b/neuralnetdemo/CMakeLists.txt @@ -0,0 +1,12 @@ +project(neuralnetdemo) + +set(HEADERS +) + +set(SOURCES + main.cpp +) + +add_executable(neuralnetdemo ${HEADERS} ${SOURCES}) + +target_link_libraries(neuralnetdemo Qt5::Core neuralnetlib) diff --git a/neuralnetlib/CMakeLists.txt b/neuralnetlib/CMakeLists.txt new file mode 100644 index 0000000..b73bef2 --- /dev/null +++ b/neuralnetlib/CMakeLists.txt @@ -0,0 +1,25 @@ +project(neuralnetlib) + +set(HEADERS + debug.h + neuralfactor.h + neurallayer.h + neuralnet.h + neuron.h +) + +set(SOURCES + debug.cpp + neuralfactor.cpp + neurallayer.cpp + neuralnet.cpp + neuron.cpp +) + +add_library(neuralnetlib ${HEADERS} ${SOURCES}) + +target_compile_definitions(neuralnetlib PRIVATE NEURALNETLIB_LIBRARY) + +target_link_libraries(neuralnetlib Qt5::Core) + +target_include_directories(neuralnetlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})