Skip to content

Commit

Permalink
Incorporate feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cppguru committed Sep 4, 2024
1 parent f9b81df commit ac29199
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 39 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ endif()
get_filename_component(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} ABSOLUTE)

add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(examples)
58 changes: 20 additions & 38 deletions examples/pstring/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,23 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

add_executable(stage1 stage1.cpp)
target_link_libraries(stage1 pmr_test_resource)

add_executable(stage2 stage2.cpp)
target_link_libraries(stage2 pmr_test_resource)

add_executable(stage3 stage3.cpp)
target_link_libraries(stage3 pmr_test_resource)

add_executable(stage4 stage4.cpp)
target_link_libraries(stage4 pmr_test_resource)

add_executable(stage4a stage4a.cpp)
target_link_libraries(stage4a pmr_test_resource)

add_executable(stage5 stage5.cpp)
target_link_libraries(stage5 pmr_test_resource)

add_executable(stage6 stage6.cpp)
target_link_libraries(stage6 pmr_test_resource)

add_executable(stage7 stage7.cpp)
target_link_libraries(stage7 pmr_test_resource)

add_executable(stage7a stage7a.cpp)
target_link_libraries(stage7a pmr_test_resource)

add_executable(stage8 stage8.cpp)
target_link_libraries(stage8 pmr_test_resource)

add_executable(stage8a stage8a.cpp)
target_link_libraries(stage8a pmr_test_resource)

add_executable(stage9 stage9.cpp)
target_link_libraries(stage9 pmr_test_resource)

add_executable(last last.cpp)
target_link_libraries(last pmr_test_resource)
list(APPEND pmr_examples
stage1
stage2
stage3
stage4
stage4a
stage5
stage6
stage7
stage7a
stage8
stage8a
stage9
last
)

foreach(example ${pmr_examples})
add_executable(${example} ${example}.cpp)
target_link_libraries(${example} PRIVATE pmr_test_resource)
endforeach()
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ endif()

add_library(pmr_test_resource test_resource.cpp)

target_include_directories(
pmr_test_resource
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)

0 comments on commit ac29199

Please sign in to comment.