Added CMakeLists.txt

This commit is contained in:
Daniel Brunner
2018-10-07 16:06:53 +02:00
parent 80e3f83c12
commit 5f9d1eef27
3 changed files with 41 additions and 0 deletions

4
CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
project(DbNeuralNet)
add_subdirectory(neuralnetdemo)
add_subdirectory(neuralnetlib)

View File

@@ -0,0 +1,12 @@
project(neuralnetdemo)
set(HEADERS
)
set(SOURCES
main.cpp
)
add_executable(neuralnetdemo ${HEADERS} ${SOURCES})
target_link_libraries(neuralnetdemo Qt5::Core neuralnetlib)

View File

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