add_subdirectory(tools)
-# dmClock
-
-add_subdirectory(dmclock) # after gmock
-add_dependencies(tests dmclock-tests dmclock-data-struct-tests)
-
-if(WITH_TESTS)
- install(PROGRAMS
- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-tests
- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-data-struct-tests
- DESTINATION bin)
-endif(WITH_TESTS)
+# dmClock (after gmock)
+
+add_subdirectory(dmclock/src)
+
+option(WITH_DMCLOCK_TESTS
+ "enable the build of dmclock-tests and dmclock-data-struct tests binaries"
+ OFF)
+if(WITH_TESTS AND WITH_DMCLOCK_TESTS)
+ # note: add_test is not being called, so dmclock tests aren't part
+ # of ceph tests
+ add_subdirectory(dmclock/test)
+ add_subdirectory(dmclock/support/test)
+endif(WITH_TESTS AND WITH_DMCLOCK_TESTS)
- if(HAVE_INTEL)
+ if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64)
add_subdirectory(crypto/isa-l)
- endif(HAVE_INTEL)
+ endif(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64)
if(WITH_TESTS)