Fixed build process.
This commit is contained in:
@@ -28,10 +28,16 @@ qt_add_executable(BionxControl WIN32 MACOSX_BUNDLE
|
||||
bcvaluemodel.cpp bcvaluemodel.h
|
||||
bcvalueslider.cpp bcvalueslider.h bcvalueslider.ui
|
||||
bcxmlloader.cpp bcxmlloader.h
|
||||
libwin/can_drv_win.c
|
||||
libwin/mhs_can_drv.c
|
||||
main.cpp
|
||||
)
|
||||
|
||||
# Plattformspezifische CAN-Treiber einbinden
|
||||
if(WIN32)
|
||||
target_sources(BionxControl PRIVATE libwin/can_drv_win.c)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_sources(BionxControl PRIVATE libwin/mhs_can_drv.c)
|
||||
endif()
|
||||
|
||||
target_include_directories(BionxControl PRIVATE
|
||||
.
|
||||
libwin
|
||||
@@ -129,4 +135,3 @@ install(TARGETS BionxControl
|
||||
BUNDLE DESTINATION .
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user