Skip to content

Commit

Permalink
Move playground.cpp to a sandbox module (#281)
Browse files Browse the repository at this point in the history
Closes #48.
  • Loading branch information
aliddell committed Apr 3, 2024
1 parent 88fcf4b commit 0627eb1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ set(CMAKE_CXX_STANDARD 20)

add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(sandbox)

include(CPack)
19 changes: 19 additions & 0 deletions sandbox/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
option(WITH_SANDBOX "Build the sandbox" OFF)

if (${WITH_SANDBOX})
#
# PARAMETERS
#
set(project acquire-driver-egrabber) # CMAKE_PROJECT_NAME gets overridden if this is a subtree of another project

set(tgt ${project}-playground)
add_executable(${tgt} playground.cpp)
set_target_properties(${tgt} PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
)
target_include_directories(${tgt} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/../")
target_link_libraries(${tgt} PRIVATE
egrabber
acquire-core-logger
acquire-core-platform)
endif ()
File renamed without changes.
16 changes: 0 additions & 16 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,4 @@ else()
add_dependencies(${tgt} ${project}-copy-${driver}-for-tests)
endforeach()
endforeach()

#
# Non-standard targets
# These might not be added to the test suite. They might be useful
# utilities/examples to keep around.
#
set(tgt ${project}-playground)
add_executable(${tgt} playground.cpp)
set_target_properties(${tgt} PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
)
target_include_directories(${tgt} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/../")
target_link_libraries(${tgt} PRIVATE
egrabber
acquire-core-logger
acquire-core-platform)
endif()

0 comments on commit 0627eb1

Please sign in to comment.