File tree 4 files changed +7
-16
lines changed
WaitFreeRingBufferUtilities
4 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5)
2
2
3
3
set (REPO_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../..)
4
- set (CMAKE_PROJECT_ROOT ${REPO_ROOT} /Projects/CMake)
5
-
6
- if (WIN32 )
7
- set (INCLUDE_FOLDER_NAME Include )
8
- else ()
9
- set (INCLUDE_FOLDER_NAME include )
10
- endif ()
11
4
12
5
set (CMAKE_CXX_STANDARD 11)
13
6
set (CMAKE_CXX_STANDARD_REQUIRED, ON )
Original file line number Diff line number Diff line change 1
1
project (Test CXX)
2
2
3
- include_directories (${gtest_SOURCE_DIR} /include ${gtest_SOURCE_DIR} )
4
- include_directories (${LOCAL_INCLUDE_DIR} )
5
-
6
3
file (GLOB_RECURSE CPP_FILES ${REPO_ROOT} /${PROJECT_NAME} /Source /*.cpp)
7
4
add_executable (${PROJECT_NAME} ${CPP_FILES} )
8
5
find_package (Threads REQUIRED)
Original file line number Diff line number Diff line change 1
1
project (WaitFreeRingBufferUtilities)
2
2
3
+ if (WIN32 )
4
+ set (INCLUDE_FOLDER_NAME Include )
5
+ else ()
6
+ set (INCLUDE_FOLDER_NAME include )
7
+ endif ()
8
+
3
9
set (LOCAL_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} /${INCLUDE_FOLDER_NAME} )
4
10
5
11
add_custom_target (${PROJECT_NAME} _HEADERS ALL
@@ -11,8 +17,4 @@ target_include_directories(${PROJECT_NAME} INTERFACE ${LOCAL_INCLUDE_DIR})
11
17
add_dependencies (${PROJECT_NAME} ${PROJECT_NAME} _HEADERS)
12
18
target_link_libraries (${PROJECT_NAME} INTERFACE Boost::optional )
13
19
14
- if (WIN32 )
15
- install (DIRECTORY ${REPO_ROOT} /${PROJECT_NAME} /Include / DESTINATION Include /Iyp/${PROJECT_NAME} )
16
- else ()
17
- install (DIRECTORY ${REPO_ROOT} /${PROJECT_NAME} /Include / DESTINATION include /Iyp/${PROJECT_NAME} )
18
- endif ()
20
+ install (DIRECTORY ${REPO_ROOT} /${PROJECT_NAME} /Include / DESTINATION ${INCLUDE_FOLDER_NAME} /Iyp/${PROJECT_NAME} )
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ namespace Iyp
10
10
{
11
11
namespace MultiProducerMultiConsumerRingBufferTest
12
12
{
13
-
14
13
constexpr static std::size_t RingSize = 4096 ;
15
14
using TestRingBufferType = WaitFreeRingBufferUtilities::RingBuffer<std::size_t ,
16
15
WaitFreeRingBufferUtilities::AccessRequirements::MULTI_CONSUMER |
You can’t perform that action at this time.
0 commit comments