Blame view

CMakeLists.txt 286 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)
  
f45a5332   Peter M. Groen   Initial setup
9
  set(SOURCE_FILES tests/main.cpp)
500c015a   Peter M. Groen   Setting up workin...
10
  add_executable(main ${SOURCE_FILES} ${DIRSRCS})