d/vive: Split nxjson sources from vive sources

This commit is contained in:
Ryan Pavlik 2019-11-14 11:37:29 -06:00 committed by Jakob Bornecrantz
parent fcd43180e6
commit 86db0622f9

View file

@ -84,12 +84,14 @@ if(BUILD_DRIVER_VIVE)
vive/vive_prober.h
vive/vive_prober.c
vive/vive_protocol.h
)
set(NXJSON_SOURCE_FILES
../../external/nxjson/nxjson.h
../../external/nxjson/nxjson.c
)
# Use OBJECT to not create a archive, since it just gets in the way.
add_library(drv_vive OBJECT ${VIVE_SOURCE_FILES})
add_library(drv_vive OBJECT ${VIVE_SOURCE_FILES} ${NXJSON_SOURCE_FILES})
target_include_directories(drv_vive SYSTEM PRIVATE ../../external)
target_link_libraries(drv_vive z)
endif()