Skip to content

File CMakeLists.txt

File List > CMakeLists.txt

Go to the documentation of this file

# module to build and install the offload_data ILLIXR plugin
if(WIN32 OR MSVC OR ANDROID)
    message(WARNING "offload_data is not yet available for windows or android")
    set(USE_OFFLOAD_DATA OFF)
else()

    set(PLUGIN_NAME plugin.offload_data${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/poses/head_pose.hpp
                ${CMAKE_SOURCE_DIR}/include/illixr/error_util.hpp
                ${CMAKE_SOURCE_DIR}/include/illixr/global_module_defs.hpp
                ${CMAKE_SOURCE_DIR}/include/illixr/phonebook.hpp
                ${CMAKE_SOURCE_DIR}/include/illixr/switchboard.hpp
    )

    target_include_directories(${PLUGIN_NAME} PRIVATE ${Boost_INCLUDE_DIR} ${ILLIXR_SOURCE_DIR}/include)
    target_link_libraries(${PLUGIN_NAME} boost_filesystem Eigen3::Eigen spdlog::spdlog)
    target_compile_features(${PLUGIN_NAME} PRIVATE cxx_std_17)

    install(TARGETS ${PLUGIN_NAME} DESTINATION lib)
endif()