fixed some issues

This commit is contained in:
admin1
2022-09-03 12:57:10 +03:00
parent 9948584cad
commit 1c98d12e6a
2 changed files with 49 additions and 9 deletions

View File

@@ -97,17 +97,17 @@ target_compile_features (sophus INTERFACE
add_custom_target(other SOURCES ${SOPHUS_OTHER_FILES})
# Create 'test' make target using ctest
option(BUILD_TESTS "Build tests." ON)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()
#option(BUILD_TESTS "Build tests." ON)
#if(BUILD_TESTS)
# enable_testing()
# add_subdirectory(test)
#endif()
# Create examples make targets using ctest
option(BUILD_EXAMPLES "Build examples." ON)
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
#option(BUILD_EXAMPLES "Build examples." ON)
#if(BUILD_EXAMPLES)
# add_subdirectory(examples)
#endif()
# Export package for use from the build tree
set(SOPHUS_CMAKE_EXPORT_DIR ${CMAKE_INSTALL_DATADIR}/sophus/cmake)

40
build.sh Executable file
View File

@@ -0,0 +1,40 @@
echo "Configuring and building Thirdparty/DBoW2 ..."
cd Thirdparty/DBoW2
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../g2o
echo "Configuring and building Thirdparty/g2o ..."
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../Sophus
echo "Configuring and building Thirdparty/Sophus ..."
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../../
echo "Uncompress vocabulary ..."
cd Vocabulary
tar -xf ORBvoc.txt.tar.gz
cd ..
echo "Configuring and building ORB_SLAM3 ..."
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4