Skip to content

Commit

Permalink
Cannelloni works on Linux only
Browse files Browse the repository at this point in the history
Signed-off-by: Remigiusz Kołłątaj <[email protected]>
  • Loading branch information
Remigiusz Kołłątaj committed Jan 4, 2018
1 parent e0e8388 commit 73d2e52
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ include_directories(${CMAKE_BINARY_DIR}/generated)
# end of version Handling

add_subdirectory(3rdParty/nodeeditor)
add_subdirectory(3rdParty/qtCannelloniCanBus)
add_subdirectory(src/common)
add_subdirectory(src/gui)
add_subdirectory(src/components)


if(WITH_TESTS OR WITH_COVERAGE)
enable_testing()
add_subdirectory(3rdParty/fakeit)
Expand All @@ -95,8 +95,13 @@ endif()

install(PROGRAMS ${CMAKE_BINARY_DIR}/lib/libnodes.so DESTINATION lib/CANdevStudio)

list(GET Qt5SerialBus_PLUGINS 0 SB_PLUGIN)
get_target_property(CAN_PLUGIN_PATH ${SB_PLUGIN} LOCATION)
get_filename_component(CAN_PLUGIN_PATH ${CAN_PLUGIN_PATH} PATH)
#Cannelloni is supported on Linux only
if(UNIX)
add_subdirectory(3rdParty/qtCannelloniCanBus)

list(GET Qt5SerialBus_PLUGINS 0 SB_PLUGIN)
get_target_property(CAN_PLUGIN_PATH ${SB_PLUGIN} LOCATION)
get_filename_component(CAN_PLUGIN_PATH ${CAN_PLUGIN_PATH} PATH)

install(PROGRAMS ${CMAKE_BINARY_DIR}/3rdParty/qtCannelloniCanBus/libqtCannelloniCanBusPlugin.so DESTINATION ${CAN_PLUGIN_PATH})
install(PROGRAMS ${CMAKE_BINARY_DIR}/3rdParty/qtCannelloniCanBus/libqtCannelloniCanBusPlugin.so DESTINATION ${CAN_PLUGIN_PATH})
endif()

0 comments on commit 73d2e52

Please sign in to comment.