Blame view

CMakeLists.txt 460 Bytes
0df27b07   Peter M. Groen   Added doxygen com...
1
  cmake_minimum_required(VERSION 3.10)
500c015a   Peter M. Groen   Setting up workin...
2
3
4
5
6
7
8
  project(modbus)
  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
  
  aux_source_directory(3rdparty/libmodbus DIRSRCS)
  include_directories(3rdparty/libmodbus include)
  
32017af3   Peter M. Groen   Setting up workin...
9
  set(SOURCE_FILES
cadcf24a   Peter M. Groen   Setting up workin...
10
      src/main.cpp
32017af3   Peter M. Groen   Setting up workin...
11
12
13
14
      src/ConnectionConfig.h
      src/IModbusAdapter.h
      src/ModbusAdapter.h
      src/ModbusAdapter.cpp
46785270   Peter M. Groen   Setting up workin...
15
16
      src/ModbusConnections.h
      src/ModbusConnections.cpp
32017af3   Peter M. Groen   Setting up workin...
17
18
19
20
21
22
  )
  
  add_executable(main
      ${SOURCE_FILES}
      ${DIRSRCS}
  )