2016-10-25 22:57:46 +00:00
|
|
|
project(serialdv)
|
|
|
|
|
|
|
|
set(serialdv_SOURCES
|
|
|
|
${LIBSERIALDVSRC}/dvcontroller.cpp
|
|
|
|
${LIBSERIALDVSRC}/serialdatacontroller.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(serialdv_HEADERS
|
|
|
|
${LIBSERIALDVSRC}/dvcontroller.h
|
|
|
|
${LIBSERIALDVSRC}/serialdatacontroller.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBSERIALDVSRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(serialdv SHARED
|
|
|
|
${serialdv_SOURCES}
|
|
|
|
)
|
|
|
|
|
2018-12-02 02:06:04 +00:00
|
|
|
set_target_properties(serialdv PROPERTIES DEFINE_SYMBOL "serialdv_EXPORTS")
|
|
|
|
|
2016-10-25 22:57:46 +00:00
|
|
|
target_link_libraries(serialdv
|
|
|
|
${LIBUSB_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS serialdv DESTINATION lib)
|