Skip to content

Commit

Permalink
Respond to PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Oct 25, 2024
1 parent 2f1660b commit 5f2b2ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

option(NOTEST "Disable all tests" OFF)
option(NO_UNIT_TESTS "Disable unit tests" OFF)
option(WITH_EXAMPLES "Build examples" OFF)

if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
endif ()

add_subdirectory(src)
if (NOT NOTEST)
if (BUILD_TESTING)
add_subdirectory(tests)
else ()
message(STATUS "Skipping test targets")
endif ()

if (WITH_EXAMPLES)
add_subdirectory(examples)
endif ()
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if (NOT TARGET acquire-core-logger)
set(NOTEST ON)
add_subdirectory(${CMAKE_SOURCE_DIR}/acquire-common/acquire-core-libs ${CMAKE_CURRENT_BINARY_DIR}/acquire-core-libs)
endif ()

Expand Down
3 changes: 1 addition & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
set(NOTEST "TRUE")
set(NOTEST ON)
add_subdirectory(${CMAKE_SOURCE_DIR}/acquire-common ${CMAKE_CURRENT_BINARY_DIR}/acquire-common)
set(NOTEST "FALSE")

#
# PARAMETERS
Expand Down

0 comments on commit 5f2b2ea

Please sign in to comment.