Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
3d2ae7f9
Commit
3d2ae7f9
authored
6 years ago
by
Martin Beseda
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Added SRC_DIR to include folders of ExprtkWrapper. Improved code formatting.
parent
5957dd86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/CMakeLists.txt
+68
-67
68 additions, 67 deletions
src/CMakeLists.txt
with
69 additions
and
68 deletions
CMakeLists.txt
+
1
−
1
View file @
3d2ae7f9
...
@@ -47,7 +47,7 @@ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" )
...
@@ -47,7 +47,7 @@ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" )
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MSVC"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W0 /bigobj"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W0 /bigobj"
)
add_compile_options
(
"/D _SCL_SECURE_NO_WARNINGS"
)
add_compile_options
(
"/D _SCL_SECURE_NO_WARNINGS"
)
add_compile_options
(
"/D_CRT_SECURE_NO_WARNINGS"
)
add_compile_options
(
"/D
_CRT_SECURE_NO_WARNINGS"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MINGW"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"MINGW"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-mbig-obj"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-mbig-obj"
)
else
()
else
()
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
68
−
67
View file @
3d2ae7f9
if
(
"
${
BUILD_TESTS
}
"
STREQUAL
"yes"
)
if
(
"
${
BUILD_TESTS
}
"
STREQUAL
"yes"
)
add_subdirectory
(
tests unit-tests
)
add_subdirectory
(
tests unit-tests
)
endif
()
endif
()
if
(
"
${
BUILD_EXAMPLES
}
"
STREQUAL
"yes"
)
if
(
"
${
BUILD_EXAMPLES
}
"
STREQUAL
"yes"
)
add_subdirectory
(
examples examples
)
add_subdirectory
(
examples examples
)
endif
()
endif
()
if
(
"
${
BUILD_LIB
}
"
STREQUAL
"yes"
)
if
(
"
${
BUILD_LIB
}
"
STREQUAL
"yes"
)
set
(
LIB_TYPE
"STATIC"
)
set
(
LIB_TYPE
"STATIC"
)
if
(
DEPENDENCIES_LINK_TYPE STREQUAL
"shared"
)
if
(
DEPENDENCIES_LINK_TYPE STREQUAL
"shared"
)
set
(
LIB_TYPE
"SHARED"
)
set
(
LIB_TYPE
"SHARED"
)
endif
()
endif
()
add_library
(
add_library
(
exprtk_wrap
exprtk_wrap
${
LIB_TYPE
}
${
LIB_TYPE
}
General/ExprtkWrapper.cpp
General/ExprtkWrapper.cpp
)
)
target_include_directories
(
target_include_directories
(
exprtk_wrap
exprtk_wrap
PRIVATE
${
EXPRTK_INCLUDE_DIR
}
${
Boost_INCLUDE_DIRS
}
${
SRC_DIR
}
)
PRIVATE
target_link_libraries
(
${
EXPRTK_INCLUDE_DIR
}
exprtk_wrap
${
Boost_INCLUDE_DIRS
}
PRIVATE
${
Boost_LIBRARIES
}
)
)
target_link_libraries
(
add_library
(
exprtk_wrap
lib4neuro
PRIVATE
${
LIB_TYPE
}
${
Boost_LIBRARIES
}
)
Neuron/Neuron.cpp
Neuron/NeuronBinary.cpp
add_library
(
Neuron/NeuronConstant.cpp
lib4neuro
Neuron/NeuronLinear.cpp
Neuron/NeuronLogistic.cpp
${
LIB_TYPE
}
Network/NeuralNetwork.cpp
Network/NeuralNetworkSum.cpp
Neuron/Neuron.cpp
NetConnection/ConnectionFunctionGeneral.cpp
Neuron/NeuronBinary.cpp
NetConnection/ConnectionFunctionIdentity.cpp
Neuron/NeuronConstant.cpp
LearningMethods/ParticleSwarm.cpp
Neuron/NeuronLinear.cpp
LearningMethods/GradientDescent.cpp
Neuron/NeuronLogistic.cpp
DataSet/DataSet.cpp
Network/NeuralNetwork.cpp
ErrorFunction/ErrorFunctions.cpp
Network/NeuralNetworkSum.cpp
Solvers/DESolver.cpp
NetConnection/ConnectionFunctionGeneral.cpp
CSVReader/CSVReader.cpp
NetConnection/ConnectionFunctionIdentity.cpp
CrossValidator/CrossValidator.cpp
LearningMethods/ParticleSwarm.cpp
NormalizationStrategy/NormalizationStrategy.cpp
LearningMethods/GradientDescent.cpp
)
DataSet/DataSet.cpp
ErrorFunction/ErrorFunctions.cpp
Solvers/DESolver.cpp
CSVReader/CSVReader.cpp
CrossValidator/CrossValidator.cpp
NormalizationStrategy/NormalizationStrategy.cpp
)
# FileSystem C++ library - has to be linked manually in GCC-8
# FileSystem C++ library - has to be linked manually in GCC-8
set
(
CXX_FILESYSTEM_LIB
""
)
set
(
CXX_FILESYSTEM_LIB
""
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
set
(
CXX_FILESYSTEM_LIB
"stdc++fs"
)
set
(
CXX_FILESYSTEM_LIB
"stdc++fs"
)
endif
()
endif
()
target_link_libraries
(
target_link_libraries
(
lib4neuro
lib4neuro
PRIVATE
PRIVATE
exprtk_wrap
exprtk_wrap
${
Boost_LIBRARIES
}
${
Boost_LIBRARIES
}
${
CXX_FILESYSTEM_LIB
}
${
CXX_FILESYSTEM_LIB
}
)
)
target_include_directories
(
target_include_directories
(
lib4neuro
lib4neuro
PUBLIC
PUBLIC
${
ROOT_DIR
}
/include
${
ROOT_DIR
}
/include
PRIVATE
PRIVATE
${
EXPRTK_INCLUDE_DIR
}
${
EXPRTK_INCLUDE_DIR
}
${
SRC_DIR
}
${
SRC_DIR
}
${
Boost_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
)
set_target_properties
(
set_target_properties
(
lib4neuro
lib4neuro
PROPERTIES
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
ARCHIVE_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
LIBRARY_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
LIBRARY_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
RUNTIME_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/bin"
RUNTIME_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/bin"
)
)
set
(
PREFIX
""
)
set
(
PREFIX
""
)
# if(WIN32)
# if(WIN32)
# set(PREFIX "lib")
# set(PREFIX "lib")
# endif()
# endif()
if
(
WIN32 AND
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"shared"
)
if
(
WIN32 AND
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"shared"
)
add_library
(
${
PREFIX
}
boost_unit_test STATIC boost_test_lib_dummy.cpp
)
add_library
(
${
PREFIX
}
boost_unit_test STATIC boost_test_lib_dummy.cpp
)
elseif
(
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"static"
)
elseif
(
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"static"
)
add_library
(
${
PREFIX
}
boost_unit_test STATIC boost_test_lib_dummy.cpp
)
add_library
(
${
PREFIX
}
boost_unit_test STATIC boost_test_lib_dummy.cpp
)
elseif
(
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"shared"
)
elseif
(
"
${
DEPENDENCIES_LINK_TYPE
}
"
STREQUAL
"shared"
)
add_library
(
${
PREFIX
}
boost_unit_test SHARED boost_test_lib_dummy.cpp
)
add_library
(
${
PREFIX
}
boost_unit_test SHARED boost_test_lib_dummy.cpp
)
endif
()
endif
()
target_include_directories
(
target_include_directories
(
${
PREFIX
}
boost_unit_test
${
PREFIX
}
boost_unit_test
PRIVATE
PRIVATE
${
Boost_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment