File CMakeLists.txt
Go to the documentation of this file
if(ANDROID)
message(WARNING "passthrough_integrator is not yet available for Android")
set(USE_PASSTHROUGH_INTEGRATOR OFF)
return()
endif()
# module to build and install the passthrough_integrator ILLIXR plugin
set(PLUGIN_NAME plugin.passthrough_integrator${ILLIXR_BUILD_SUFFIX})
# source files, listed individually so that any changes will trigger a rebuild
add_library(${PLUGIN_NAME} SHARED
plugin.cpp
plugin.hpp
${CMAKE_SOURCE_DIR}/include/illixr/plugin.hpp
${CMAKE_SOURCE_DIR}/include/illixr/data_format/imu.hpp
${CMAKE_SOURCE_DIR}/include/illixr/phonebook.hpp
${CMAKE_SOURCE_DIR}/include/illixr/switchboard.hpp
)
target_include_directories(${PLUGIN_NAME} PRIVATE ${ILLIXR_SOURCE_DIR}/include)
target_link_libraries(${PLUGIN_NAME}
Eigen3::Eigen
spdlog::spdlog
Boost::serialization
)
target_compile_features(${PLUGIN_NAME} PRIVATE cxx_std_17)
if(WIN32 OR MSVC)
target_compile_definitions(${PLUGIN_NAME} PRIVATE BUILDING_LIBRARY)
endif()
install(TARGETS ${PLUGIN_NAME} DESTINATION lib)