Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
507 B
1
Indexable
Never
cmake_minimum_required(VERSION 3.0.0)
project(TF03_Distance_Sensor VERSION 0.1.0)

add_library(TF03 TF03/tf03.cpp)
target_include_directories(TF03 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/TF03)

add_executable(TF03_Distance_Sensor main.cpp)
target_include_directories(TF03_Distance_Sensor PUBLIC /usr/include/libserial)
target_link_libraries(TF03_Distance_Sensor /usr/lib/arm-linux-gnueabihf/libserial.so TF03)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)