Skip to content

Commit

Permalink
Merge pull request #4 from ZhuLingQing/dev2
Browse files Browse the repository at this point in the history
fix cmake issue
  • Loading branch information
ZhuLingQing authored Mar 16, 2024
2 parents c69dacc + 474b62b commit 31c7a94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.26)
cmake_minimum_required(VERSION 3.16)

add_subdirectory("protothreads")

Expand Down
4 changes: 3 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ target_link_libraries(${TEST}
protothreads
)

target_include_directories(${TEST} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
include_directories(${PROJECT_SOURCE_DIR} ${OS_LIB_DIR})

target_include_directories(${TEST} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${OS_LIB_DIR})

add_test( NAME ${TEST} COMMAND ./${TEST})

0 comments on commit 31c7a94

Please sign in to comment.