File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.13)
2+
3+
4+ cmake_policy (SET CMP0079 NEW)
5+ project ("circularbuffer" )
6+
7+ set (CMAKE_CXX_STANDARD 11)
8+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
9+
10+
11+ add_library (${PROJECT_NAME} INTERFACE )
12+
13+ target_include_directories (${PROJECT_NAME} INTERFACE ${${PROJECT_NAME} _SOURCE_DIR})
14+
15+ add_subdirectory (tests)
16+
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.13)
2+
3+ message (STATUS "cmake in tests, project name ${PROJECT_NAME} " )
4+
5+ set (CMAKE_CXX_STANDARD 11)
6+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
7+
8+ add_executable (test_circularbuffer_int test_circularbuffer_int.cpp)
9+ target_link_libraries (test_circularbuffer_int
10+ PRIVATE
11+ circularbuffer
12+ /usr/local/lib/libgtest.a
13+ pthread
14+ )
You can’t perform that action at this time.
0 commit comments