diff --git a/flowbench/CMakeLists.txt b/flowbench/CMakeLists.txt
index 8378c9c8ab..92870d992d 100644
--- a/flowbench/CMakeLists.txt
+++ b/flowbench/CMakeLists.txt
@@ -1,23 +1,7 @@
-set(FLOWBENCH_SRCS
-  flowbench.actor.cpp
-  BenchCallback.actor.cpp
-  BenchEncrypt.cpp
-  BenchHash.cpp
-  BenchIterate.cpp
-  BenchIONet2.actor.cpp
-  BenchMem.cpp
-  BenchMetadataCheck.cpp
-  BenchNet2.actor.cpp
-  BenchPopulate.cpp
-  BenchRandom.cpp
-  BenchRef.cpp
-  BenchStream.actor.cpp
-  BenchTimer.cpp
-  BenchVersionVector.cpp
-  GlobalData.h
-  GlobalData.cpp)
-
 project (flowbench)
+
+fdb_find_sources(FLOWBENCH_SRCS)
+
 # include the configurations from benchmark.cmake
 configure_file(benchmark.cmake googlebenchmark-download/CMakeLists.txt)
 # executing the configuration step
@@ -46,6 +30,6 @@ add_subdirectory(
   ${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-build
   EXCLUDE_FROM_ALL
 )
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/include)
 add_flow_target(EXECUTABLE NAME flowbench SRCS ${FLOWBENCH_SRCS})
+target_include_directories(flowbench PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}/include"  ${CMAKE_CURRENT_BINARY_DIR}/googlebenchmark-src/include)
 target_link_libraries(flowbench benchmark pthread flow fdbclient)
diff --git a/flowbench/GlobalData.h b/flowbench/include/flowbench/GlobalData.h
similarity index 100%
rename from flowbench/GlobalData.h
rename to flowbench/include/flowbench/GlobalData.h