ardupilot/cmake/modules/ApmMakeLib.cmake

8 lines
315 B
CMake
Raw Normal View History

2011-09-29 22:23:26 -03:00
string(REGEX REPLACE ".*/" "" LIB_NAME ${CMAKE_CURRENT_SOURCE_DIR})
#message(STATUS "building lib: ${LIB_NAME}")
file(GLOB ${LIB_NAME}_SRCS *.cpp)
file(GLOB ${LIB_NAME}_HDRS *.h)
set(${LIB_NAME}_BOARD ${BOARD})
generate_arduino_library(${LIB_NAME})
set_target_properties(${LIB_NAME} PROPERTIES LINKER_LANGUAGE CXX)