Resolved conflicts

This commit is contained in:
iasonmanolas 2021-12-23 21:29:04 +02:00
parent cd89112936
commit f79e0acb4f
2 changed files with 13 additions and 53 deletions

View File

@ -9,28 +9,19 @@ if (CMAKE_VERSION VERSION_LESS 3.2)
else() else()
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1") set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif() endif()
<<<<<<< HEAD
#set(EXTERNAL_DEPS_DIR "/home/iason/Coding/build/external dependencies") #set(EXTERNAL_DEPS_DIR "/home/iason/Coding/build/external dependencies")
if(NOT EXISTS EXTERNAL_DEPS_DIR) if(NOT EXISTS EXTERNAL_DEPS_DIR)
=======
set(EXTERNAL_DEPS_DIR "/home/iason/Coding/build/external dependencies")
if(NOT EXISTS ${EXTERNAL_DEPS_DIR})
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb
set(EXTERNAL_DEPS_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(EXTERNAL_DEPS_DIR ${CMAKE_CURRENT_BINARY_DIR})
message("External dependencies directory set:" ${EXTERNAL_DEPS_DIR}) message("External dependencies directory set:" ${EXTERNAL_DEPS_DIR})
endif() endif()
##Create directory for the external libraries ##Create directory for the external libraries
file(MAKE_DIRECTORY ${EXTERNAL_DEPS_DIR}) file(MAKE_DIRECTORY ${EXTERNAL_DEPS_DIR})
<<<<<<< HEAD
#message(${POLYSCOPE_ALREADY_COMPILED}) #message(${POLYSCOPE_ALREADY_COMPILED})
if(NOT DEFINED USE_POLYSCOPE) if(NOT DEFINED USE_POLYSCOPE)
message(FATAL_ERROR "Use polyscope was not defined") message(FATAL_ERROR "Use polyscope was not defined")
endif() endif()
=======
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb
if(${USE_POLYSCOPE}) if(${USE_POLYSCOPE})
set(POLYSCOPE_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/polyscope) set(POLYSCOPE_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/polyscope)
download_project(PROJ POLYSCOPE download_project(PROJ POLYSCOPE
@ -44,21 +35,6 @@ if(${USE_POLYSCOPE})
add_compile_definitions(POLYSCOPE_DEFINED) add_compile_definitions(POLYSCOPE_DEFINED)
endif() endif()
<<<<<<< HEAD
##dlib
#set(DLIB_BIN_DIR ${CMAKE_CURRENT_BINARY_DIR}/dlib_bin)
#file(MAKE_DIRECTORY ${DLIB_BIN_DIR})
#download_project(PROJ DLIB
# GIT_REPOSITORY https://github.com/davisking/dlib.git
# GIT_TAG master
# BINARY_DIR ${DLIB_BIN_DIR}
# PREFIX ${EXTERNAL_DEPS_DIR}
# ${UPDATE_DISCONNECTED_IF_AVAILABLE}
#)
#add_subdirectory(${DLIB_SOURCE_DIR} ${DLIB_BINARY_DIR})
=======
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb
##vcglib devel branch ##vcglib devel branch
download_project(PROJ vcglib_devel download_project(PROJ vcglib_devel
GIT_REPOSITORY https://github.com/IasonManolas/vcglib.git GIT_REPOSITORY https://github.com/IasonManolas/vcglib.git
@ -99,9 +75,6 @@ download_project(PROJ threed-beam-fea
) )
add_subdirectory(${threed-beam-fea_SOURCE_DIR} ${threed-beam-fea_BINARY_DIR}) add_subdirectory(${threed-beam-fea_SOURCE_DIR} ${threed-beam-fea_BINARY_DIR})
<<<<<<< HEAD
=======
##TBB ##TBB
set(TBB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/tbb) set(TBB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/tbb)
download_project(PROJ TBB download_project(PROJ TBB
@ -114,13 +87,10 @@ download_project(PROJ TBB
option(TBB_BUILD_TESTS "Build TBB tests and enable testing infrastructure" OFF) option(TBB_BUILD_TESTS "Build TBB tests and enable testing infrastructure" OFF)
add_subdirectory(${TBB_SOURCE_DIR} ${TBB_BINARY_DIR}) add_subdirectory(${TBB_SOURCE_DIR} ${TBB_BINARY_DIR})
link_directories(${TBB_BINARY_DIR}) link_directories(${TBB_BINARY_DIR})
###Eigen 3 NOTE: Eigen is required on the system the code is ran
find_package(Eigen3 3.3 REQUIRED)
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb
if(MSVC) if(MSVC)
add_compile_definitions(_HAS_STD_BYTE=0) add_compile_definitions(_HAS_STD_BYTE=0)
endif(MSVC) endif(MSVC)
#link_directories(${CMAKE_CURRENT_LIST_DIR}/boost_graph/libs)
file(GLOB MySourcesFiles ${CMAKE_CURRENT_LIST_DIR}/*.hpp ${CMAKE_CURRENT_LIST_DIR}/*.cpp) file(GLOB MySourcesFiles ${CMAKE_CURRENT_LIST_DIR}/*.hpp ${CMAKE_CURRENT_LIST_DIR}/*.cpp)
add_library(${PROJECT_NAME} ${MySourcesFiles} ${vcglib_devel_SOURCE_DIR}/wrap/ply/plylib.cpp) add_library(${PROJECT_NAME} ${MySourcesFiles} ${vcglib_devel_SOURCE_DIR}/wrap/ply/plylib.cpp)
target_include_directories(${PROJECT_NAME} target_include_directories(${PROJECT_NAME}
@ -150,7 +120,6 @@ if(USE_ENSMALLEN)
${UPDATE_DISCONNECTED_IF_AVAILABLE} ${UPDATE_DISCONNECTED_IF_AVAILABLE}
) )
add_subdirectory(${ENSMALLEN_SOURCE_DIR} ${ENSMALLEN_BINARY_DIR}) add_subdirectory(${ENSMALLEN_SOURCE_DIR} ${ENSMALLEN_BINARY_DIR})
<<<<<<< HEAD
download_project(PROJ ARMADILLO download_project(PROJ ARMADILLO
GIT_REPOSITORY https://gitlab.com/conradsnicta/armadillo-code.git GIT_REPOSITORY https://gitlab.com/conradsnicta/armadillo-code.git
@ -160,19 +129,13 @@ if(USE_ENSMALLEN)
) )
add_subdirectory(${ARMADILLO_SOURCE_DIR} ${ARMADILLO_BINARY_DIR}) add_subdirectory(${ARMADILLO_SOURCE_DIR} ${ARMADILLO_BINARY_DIR})
target_include_directories(${PROJECT_NAME} PUBLIC armadillo ) target_include_directories(${PROJECT_NAME} PUBLIC armadillo )
=======
set(ARMADILLO_SOURCE_DIR "/home/iason/Coding/Libraries/armadillo")
add_subdirectory(${ARMADILLO_SOURCE_DIR} ${EXTERNAL_DEPS_DIR}/armadillo_build)
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb
if(${MYSOURCES_STATIC_LINK}) if(${MYSOURCES_STATIC_LINK})
target_link_libraries(${PROJECT_NAME} PUBLIC "-static" ensmallen ${EXTERNAL_DEPS_DIR}/armadillo_build/libarmadillo.a) target_link_libraries(${PROJECT_NAME} PUBLIC "-static" ensmallen ${ARMADILLO_BINARY_DIR}/libarmadillo.a)
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC armadillo ensmallen) target_link_libraries(${PROJECT_NAME} PUBLIC armadillo ensmallen)
endif() endif()
target_include_directories(${PROJECT_NAME} PUBLIC ${ARMADILLO_SOURCE_DIR}/include) target_include_directories(${PROJECT_NAME} PUBLIC armadillo)
endif() endif()
<<<<<<< HEAD
target_include_directories(${PROJECT_NAME} target_include_directories(${PROJECT_NAME}
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/boost_graph PUBLIC ${CMAKE_CURRENT_LIST_DIR}/boost_graph
@ -216,17 +179,14 @@ if(${MYSOURCES_STATIC_LINK})
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC matplot) target_link_libraries(${PROJECT_NAME} PUBLIC matplot)
endif() endif()
#endif()
#download_project(PROJ GSL download_project(PROJ GSL
# GIT_REPOSITORY https://github.com/microsoft/GSL.git GIT_REPOSITORY https://github.com/microsoft/GSL.git
# GIT_TAG master GIT_TAG master
# PREFIX ${EXTERNAL_DEPS_DIR} PREFIX ${EXTERNAL_DEPS_DIR}
# ${UPDATE_DISCONNECTED_IF_AVAILABLE} ${UPDATE_DISCONNECTED_IF_AVAILABLE}
# ) )
#add_subdirectory(${GSL_SOURCE_DIR} ${GSL_BINARY_DIR}) add_subdirectory(${GSL_SOURCE_DIR} ${GSL_BINARY_DIR})
#target_link_libraries(${PROJECT_NAME} PUBLIC GSL) target_link_libraries(${PROJECT_NAME} PUBLIC GSL)
#target_include_directories(${PROJECT_NAME} PUBLIC GSL) target_include_directories(${PROJECT_NAME} PUBLIC GSL)
=======
>>>>>>> c9fc6ccd0877f92308795b99e51c8e5dfd1e31eb

View File

@ -67,7 +67,7 @@ enum OptimizationParameterIndex { E, A, I2, I3, J, R, Theta, NumberOfOptimizatio
struct Settings struct Settings
{ {
std::filesystem::path intermediateResultsDirectoryPath; std::filesystem::path intermediateResultsDirectoryPath;
std::vector<std::vector<OptimizationParameterIndex>> optimizationVariables; std::vector<std::vector<ReducedPatternOptimization::OptimizationParameterIndex>> optimizationVariables;
enum NormalizationStrategy { NonNormalized, Epsilon }; enum NormalizationStrategy { NonNormalized, Epsilon };
std::vector<xRange> parameterRanges; std::vector<xRange> parameterRanges;
inline static vector<std::string> normalizationStrategyStrings{"NonNormalized", "Epsilon"}; inline static vector<std::string> normalizationStrategyStrings{"NonNormalized", "Epsilon"};