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)