Skip to content

Commit

Permalink
Added library target in CmakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
debevv committed Dec 12, 2024
1 parent 9b93660 commit a1705c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -g0")

include_directories(tests examples/linux .)

# Define BUILD_SHARED_LIBS=ON to build a dynamic library instead
add_library(nanomodbus nanomodbus.c)

add_executable(nanomodbus_tests nanomodbus.c tests/nanomodbus_tests.c)
target_link_libraries(nanomodbus_tests pthread)

Expand Down

0 comments on commit a1705c0

Please sign in to comment.