File CMakeLists.txt
Go to the documentation of this file
# module to build and install the pose_lookup ILLIXR plugin
set(PLUGIN_NAME plugin.pose_lookup${ILLIXR_BUILD_SUFFIX})
# source files, listed individually so that any changes will trigger a rebuild
add_library(${PLUGIN_NAME} SHARED
service.cpp
service.hpp
${CMAKE_SOURCE_DIR}/include/illixr/data_loading.hpp
utils.hpp
${CMAKE_SOURCE_DIR}/include/illixr/error_util.hpp
${CMAKE_SOURCE_DIR}/include/illixr/iterators/csv_iterator.hpp
${CMAKE_SOURCE_DIR}/include/illixr/iterators/data_iterator.hpp
${CMAKE_SOURCE_DIR}/include/illixr/data_format/misc.hpp
${CMAKE_SOURCE_DIR}/include/illixr/data_format/poses/head_pose.hpp
${CMAKE_SOURCE_DIR}/include/illixr/plugin.hpp
${CMAKE_SOURCE_DIR}/include/illixr/global_module_defs.hpp
${CMAKE_SOURCE_DIR}/include/illixr/phonebook.hpp
${CMAKE_SOURCE_DIR}/include/illixr/data_format/pose_prediction.hpp
)
target_include_directories(${PLUGIN_NAME} PRIVATE ${ILLIXR_SOURCE_DIR}/include)
if(ANDROID)
target_include_directories(${PLUGIN_NAME} PRIVATE
${jnigraphics-lib}
${ANDROID_NDK}/sources/android/native_app_glue
)
endif()
target_link_libraries(${PLUGIN_NAME} PUBLIC
Eigen3::Eigen
Boost::serialization
)
if(ANDROID)
target_link_libraries(${PLUGIN_NAME} PUBLIC
EGL
GLESv3
Eigen3::Eigen
spdlog::spdlog_android
)
else()
target_link_libraries(${PLUGIN_NAME} PUBLIC
spdlog::spdlog
)
endif()
if(WIN32 OR MSVC)
target_compile_definitions(${PLUGIN_NAME} PRIVATE BUILDING_LIBRARY)
endif()
target_compile_features(${PLUGIN_NAME} PRIVATE cxx_std_17)
if(NOT ANDROID)
install(TARGETS ${PLUGIN_NAME} DESTINATION lib)
endif()