-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
31 lines (24 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#file CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
#Project Name
project( cmdMessenger-cpp )
#include
include_directories( ./include/ )
#executáveis
#add_executable( hello ./src/hello.cpp )
#add_executable( interbyte ./src/interbyte.cpp )
#add_executable( teste ./src/teste.cpp )
#add_executable( token ./src/token.cpp )
#add_executable( parse ./src/parser.cpp )
add_executable( led ./src/examples/led.cpp )
add_executable( sensor ./src/examples/sensor.cpp )
#bibliotecas
add_library(messenger SHARED ./src/CmdMessenger.cpp ./src/CmdBase.cpp ./src/CmdSend.cpp ./src/CmdReceived.cpp)
target_link_libraries(messenger serial)
#target_link_libraries( hello serial )
#target_link_libraries( interbyte serial )
#target_link_libraries( teste serial )
target_link_libraries( led messenger )
target_link_libraries( sensor messenger )
install(TARGETS messenger DESTINATION lib)
install(FILES include/CmdBase.h include/CmdMessenger.h include/CmdReceived.h include/CmdSend.h include/callback.h DESTINATION include/CmdMessenger)