67ebd44070aa21bc4ccee188cf8ea22093e34d05
[contrib/upm.git] / src / nrf24l01 / CMakeLists.txt
1 set (libname "nrf24l01")
2 add_library (nrf24l01 SHARED nrf24l01.cxx)
3 include_directories (${MAA_INCLUDE_DIR})
4 target_link_libraries (nrf24l01 ${MAA_LIBRARIES})
5
6 install (TARGETS ${libname} DESTINATION lib/upm COMPONENT ${libname})
7 install (FILES nrf24l01.h DESTINATION include/upm COMPONENT ${libname})
8
9 cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
10 set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm NRF tx/rx")