nanoMODBUS/tests/CMakeLists.txt
Valerio De Benedetto 13cd7c74b6 Additional tests
2022-01-22 11:34:47 +01:00

15 lines
378 B
CMake

cmake_minimum_required(VERSION 3.21)
project(modbusino_tests C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -g")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")
include_directories(. ..)
#add_definitions(-DMBSN_DEBUG)
add_executable(modbusino_tests ../modbusino.c modbusino_tests.c)
target_link_libraries(modbusino_tests pthread)