cmake: use cmake includedir
We need to use CMake variables to avoid installing things in the wrong places on systems that have multilib enabled. Signed-off-by: Kevron Rees <kevron.m.rees@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
063a3154aa
commit
c7a405a531
@@ -35,7 +35,7 @@ target_link_libraries (spi_max7219 mraa)
|
||||
|
||||
add_subdirectory (c++)
|
||||
|
||||
install (DIRECTORY ${PROJECT_SOURCE_DIR}/examples/ DESTINATION share/mraa/examples)
|
||||
install (DIRECTORY ${PROJECT_SOURCE_DIR}/examples/ DESTINATION ${CMAKE_INSTALL_DATADIR}/mraa/examples)
|
||||
|
||||
if (INSTALLGPIOTOOL)
|
||||
install (TARGETS mraa-gpio DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user