Commit 63c4d3383952e67cd7b55fa0cd7537f3e469ea60
1 parent
85d04e5d
Added Scripts for Building
Showing
3 changed files
with
35 additions
and
0 deletions
.gitignore
0 โ 100644
CMakeLists.txt
0 โ 100644
| 1 | +cmake_minimum_required(VERSION 3.0) | |
| 2 | +project(modbus-cpp) | |
| 3 | +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake) | |
| 4 | + | |
| 5 | +# ============================================================================== | |
| 6 | +# = Include build information | |
| 7 | +include(projectheader) | |
| 8 | +project_header(modbus-cpp) | |
| 9 | + | |
| 10 | +add_subdirectory(src) | |
| 11 | + | ... | ... |
src/CMakeLists.txt
0 โ 100644
| 1 | +cmake_minimum_required(VERSION 3.16) | |
| 2 | +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake) | |
| 3 | + | |
| 4 | +include(projectheader) | |
| 5 | +project_header(modbus-cpp) | |
| 6 | + | |
| 7 | +include(compiler) | |
| 8 | + | |
| 9 | +set(SRC_LIST | |
| 10 | + ${CMAKE_CURRENT_SOURCE_DIR}/modbusbase.h | |
| 11 | + ${CMAKE_CURRENT_SOURCE_DIR}/modbusbase.cpp | |
| 12 | +) | |
| 13 | + | |
| 14 | +include(library) | |
| 15 | +add_libraries(PUBLIC | |
| 16 | +) | |
| 17 | + | |
| 18 | +include(installation) | |
| 19 | +install_component() | |
| 20 | + | ... | ... |