Blame view

CMakeLists.txt 403 Bytes
500c015a   Peter M. Groen   Setting up workin...
1
2
3
4
5
6
7
8
  cmake_minimum_required(VERSION 3.2)
  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
10
11
12
13
14
15
16
17
18
19
20
  set(SOURCE_FILES
      tests/main.cpp
      src/ConnectionConfig.h
      src/IModbusAdapter.h
      src/ModbusAdapter.h
      src/ModbusAdapter.cpp
  )
  
  add_executable(main
      ${SOURCE_FILES}
      ${DIRSRCS}
  )