File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 11[submodule "libs/cxxopts "]
22 path = libs/cxxopts
33 url = https://github.com/NikolasK-source/cxxopts.git
4- [submodule "libs/libmodbus "]
5- path = libs/libmodbus
6- url = https://github.com/stephane/libmodbus
Original file line number Diff line number Diff line change 1+ # ---------------------------------------- packages --------------------------------------------------------------------
2+ # ======================================================================================================================
3+ find_package (cxxshm REQUIRED)
4+ find_package (cxxsemaphore REQUIRED)
15
2- find_package (cxxshm)
3- find_package (cxxsemaphore)
6+ # ---------------------------------------- external libs ---------------------------------------------------------------
7+ # ======================================================================================================================
8+ find_library (modbus_library modbus)
49
510# ---------------------------------------- subdirectories --------------------------------------------------------------
611# ======================================================================================================================
7- include (../modbus.cmake)
8- target_link_libraries (${Target} PRIVATE modbus)
12+ add_subdirectory (cxxopts EXCLUDE_FROM_ALL )
913
1014# ---------------------------------------- link libraries --------------------------------------------------------------
1115# ======================================================================================================================
16+ target_link_libraries (${Target} PRIVATE ${modbus_library} )
1217target_link_libraries (${Target} PRIVATE rt)
13-
14- add_subdirectory (cxxopts EXCLUDE_FROM_ALL )
1518target_link_libraries (${Target} PRIVATE cxxopts)
16-
1719target_link_libraries (${Target} PRIVATE cxxshm)
1820target_link_libraries (${Target} PRIVATE cxxsemaphore)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments