added cmake support
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
add_compile_options(-Wconversion -Wno-unused-parameter)
|
||||
|
||||
set(libebus_a_SOURCES
|
||||
result.cpp
|
||||
result.h
|
||||
symbol.cpp
|
||||
symbol.h
|
||||
filereader.h
|
||||
datatype.cpp
|
||||
datatype.h
|
||||
data.cpp
|
||||
data.h
|
||||
device.cpp
|
||||
device.h
|
||||
message.cpp
|
||||
message.h
|
||||
)
|
||||
|
||||
if(HAVE_CONTRIB)
|
||||
add_subdirectory(contrib)
|
||||
endif(HAVE_CONTRIB)
|
||||
|
||||
add_library(ebus ${libebus_a_SOURCES})
|
||||
@@ -0,0 +1,12 @@
|
||||
add_compile_options(-Wno-unused-parameter)
|
||||
|
||||
set(libebuscontrib_a_SOURCES
|
||||
contrib.cpp
|
||||
contrib.h
|
||||
tem.cpp
|
||||
tem.h
|
||||
)
|
||||
|
||||
include_directories(..)
|
||||
|
||||
add_library(ebuscontrib ${libebuscontrib_a_SOURCES})
|
||||
@@ -0,0 +1,18 @@
|
||||
add_compile_options(-Wconversion)
|
||||
|
||||
set(libutils_a_SOURCES
|
||||
log.cpp
|
||||
log.h
|
||||
tcpsocket.cpp
|
||||
tcpsocket.h
|
||||
thread.cpp
|
||||
thread.h
|
||||
clock.cpp
|
||||
clock.h
|
||||
queue.h
|
||||
notify.h
|
||||
rotatefile.cpp
|
||||
rotatefile.h
|
||||
)
|
||||
|
||||
add_library(utils ${libutils_a_SOURCES})
|
||||
Reference in New Issue
Block a user