upm: update past modules to use new CMake macro

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-06-11 15:02:44 +01:00
parent d71e4e5dc2
commit 34e343869c
6 changed files with 12 additions and 165 deletions

View File

@ -1,12 +1,4 @@
set (libname "nrf24l01")
set (libdescription "libupm NRF tx/rx")
add_library (nrf24l01 SHARED nrf24l01.cxx)
include_directories (${MAA_INCLUDE_DIR})
target_link_libraries (nrf24l01 ${MAA_LIBRARIES})
install (TARGETS ${libname} DESTINATION lib/upm COMPONENT ${libname})
install (FILES nrf24l01.h DESTINATION include/upm COMPONENT ${libname})
if (IPK)
cpack_add_component (${libname} DISPLAY_NAME ${libname} REQUIRED INSTALL_TYPES all)
set(CPACK_COMPONENT_${libname}_DESCRIPTION "libupm NRF tx/rx")
endif()
upm_module_init()