generated from NikolasK-source/CMAKE_Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from NikolasK-source/main
update to 1.6.0
- Loading branch information
Showing
9 changed files
with
60 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
[submodule "libs/cxxopts"] | ||
path = libs/cxxopts | ||
url = https://github.com/NikolasK-source/cxxopts.git | ||
[submodule "libs/libmodbus"] | ||
path = libs/libmodbus | ||
url = https://github.com/stephane/libmodbus | ||
[submodule "libs/cxxshm"] | ||
path = libs/cxxshm | ||
url = https://github.com/NikolasK-source/cxxshm.git | ||
[submodule "libs/cxxsemaphore"] | ||
path = libs/cxxsemaphore | ||
url = https://github.com/NikolasK-source/cxxsemaphore.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# ---------------------------------------- packages -------------------------------------------------------------------- | ||
# ====================================================================================================================== | ||
find_package(cxxshm REQUIRED) | ||
find_package(cxxsemaphore REQUIRED) | ||
find_package(cxxopts REQUIRED) | ||
|
||
# ---------------------------------------- external libs --------------------------------------------------------------- | ||
# ====================================================================================================================== | ||
find_library(modbus_library modbus) | ||
|
||
# ---------------------------------------- subdirectories -------------------------------------------------------------- | ||
# ====================================================================================================================== | ||
include(../modbus.cmake) | ||
target_link_libraries(${Target} PRIVATE modbus) | ||
|
||
# ---------------------------------------- link libraries -------------------------------------------------------------- | ||
# ====================================================================================================================== | ||
target_link_libraries(${Target} PRIVATE ${modbus_library}) | ||
target_link_libraries(${Target} PRIVATE rt) | ||
|
||
add_subdirectory(cxxopts EXCLUDE_FROM_ALL) | ||
target_link_libraries(${Target} PRIVATE cxxopts) | ||
|
||
add_subdirectory(cxxshm EXCLUDE_FROM_ALL) | ||
target_link_libraries(${Target} PRIVATE INTERFACE cxxopts) | ||
target_link_libraries(${Target} PRIVATE cxxshm) | ||
|
||
add_subdirectory(cxxsemaphore EXCLUDE_FROM_ALL) | ||
target_link_libraries(${Target} PRIVATE cxxsemaphore) |
Submodule cxxopts
deleted from
c74846
Submodule cxxsemaphore
deleted from
c5aec9
Submodule cxxshm
deleted from
fc145c
Submodule libmodbus
deleted from
2cbafa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters