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})