3fce906b8b09b2ae050a61a7970e68bbc8b9e5c3
[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 if (IPK)
10   cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
11   set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm NRF tx/rx")
12 endif()