Added CMakeLists.txt
This commit is contained in:
4
CMakeLists.txt
Normal file
4
CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
project(DbNeuralNet)
|
||||
|
||||
add_subdirectory(neuralnetdemo)
|
||||
add_subdirectory(neuralnetlib)
|
12
neuralnetdemo/CMakeLists.txt
Normal file
12
neuralnetdemo/CMakeLists.txt
Normal 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)
|
25
neuralnetlib/CMakeLists.txt
Normal file
25
neuralnetlib/CMakeLists.txt
Normal 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})
|
Reference in New Issue
Block a user