Additional notes on cmake, moved previously excluded discrete files, re-enabled testPotentialTable (which fails)
parent
33cdd30173
commit
99d3b7bad6
|
@ -1,5 +1,6 @@
|
||||||
# Build full gtsam library as a single library
|
# We split the library in to separate subfolders, each containing
|
||||||
# and also build tests
|
# tests, timing, and an optional convenience library.
|
||||||
|
# The following variable is the master list of subdirs to add
|
||||||
set (gtsam_subdirs
|
set (gtsam_subdirs
|
||||||
base
|
base
|
||||||
geometry
|
geometry
|
||||||
|
@ -26,12 +27,14 @@ if (GTSAM_BUILD_CONVENIENCE_LIBRARIES)
|
||||||
add_library(ccolamd STATIC ${3rdparty_srcs})
|
add_library(ccolamd STATIC ${3rdparty_srcs})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# To exclude a source from the library build (in any subfolder)
|
||||||
|
# Add the full name to this list, as in the following example
|
||||||
# Sources to remove from builds
|
# Sources to remove from builds
|
||||||
set (excluded_sources
|
set (excluded_sources "")
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/discrete/TypedDiscreteFactor.cpp"
|
# "${CMAKE_CURRENT_SOURCE_DIR}/discrete/TypedDiscreteFactor.cpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/discrete/TypedDiscreteFactorGraph.cpp"
|
# "${CMAKE_CURRENT_SOURCE_DIR}/discrete/TypedDiscreteFactorGraph.cpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/discrete/parseUAI.cpp"
|
# "${CMAKE_CURRENT_SOURCE_DIR}/discrete/parseUAI.cpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/discrete/PotentialTable.cpp")
|
# "${CMAKE_CURRENT_SOURCE_DIR}/discrete/PotentialTable.cpp")
|
||||||
|
|
||||||
if(GTSAM_USE_QUATERNIONS)
|
if(GTSAM_USE_QUATERNIONS)
|
||||||
set(excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/geometry/Rot3M.cpp")
|
set(excluded_sources ${excluded_sources} "${CMAKE_CURRENT_SOURCE_DIR}/geometry/Rot3M.cpp")
|
||||||
|
@ -55,7 +58,8 @@ foreach(subdir ${gtsam_subdirs})
|
||||||
add_subdirectory(${subdir})
|
add_subdirectory(${subdir})
|
||||||
endforeach(subdir)
|
endforeach(subdir)
|
||||||
|
|
||||||
# assemble gtsam components
|
# To add additional sources to gtsam when building the full library (static or shared)
|
||||||
|
# Add the subfolder with _srcs appended to the end to this list
|
||||||
set(gtsam_srcs
|
set(gtsam_srcs
|
||||||
${3rdparty_srcs}
|
${3rdparty_srcs}
|
||||||
${base_srcs}
|
${base_srcs}
|
||||||
|
|
|
@ -13,10 +13,10 @@ set (discrete_local_libs
|
||||||
)
|
)
|
||||||
|
|
||||||
# Exclude tests that don't work
|
# Exclude tests that don't work
|
||||||
set (discrete_excluded_tests
|
set (discrete_excluded_tests "")
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp"
|
#"${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactor.cpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactorGraph.cpp"
|
#"${CMAKE_CURRENT_SOURCE_DIR}/tests/testTypedDiscreteFactorGraph.cpp"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/tests/testPotentialTable.cpp")
|
#"${CMAKE_CURRENT_SOURCE_DIR}/tests/testPotentialTable.cpp")
|
||||||
|
|
||||||
# Add all tests
|
# Add all tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
|
|
Loading…
Reference in New Issue