summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 234b0cf9d2..41549842cb 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -107,3 +107,12 @@ add_executable(format_test format_test.cpp)
target_link_libraries(format_test ${NBT_NAME})
add_test(format_test format_test)
stop_warnings(format_test)
+
+# Optional local test executable to verify value assignments (developer helper)
+option(NBT_BUILD_LOCAL_TEST "Build a small local test executable for value assignments" ON)
+if(NBT_BUILD_LOCAL_TEST)
+ add_executable(test_value test_value.cpp)
+ target_link_libraries(test_value ${NBT_NAME})
+ add_test(test_value test_value)
+ stop_warnings(test_value)
+endif()