gtsam/CppUnitLite/CMakeLists.txt

13 lines
439 B
CMake
Raw Normal View History

2011-12-14 10:24:19 +08:00
# Build/install CppUnitLite
file(GLOB cppunitlite_headers "*.h")
file(GLOB cppunitlite_src "*.cpp")
2011-12-14 10:24:19 +08:00
add_library(CppUnitLite STATIC ${cppunitlite_src})
2011-12-14 10:24:19 +08:00
option(GTSAM_INSTALL_CPPUNITLITE "Enable/Disable installation of CppUnitLite library" ON)
if (GTSAM_INSTALL_CPPUNITLITE)
install(FILES ${cppunitlite_headers} DESTINATION include/CppUnitLite)
install(TARGETS CppUnitLite ARCHIVE DESTINATION lib)
endif(GTSAM_INSTALL_CPPUNITLITE)