build: add option to enable tests build

This commit is contained in:
august-alt 2021-06-08 17:28:12 +04:00
parent 4fa9630470
commit 6acf001e94

View File

@ -19,6 +19,8 @@ install(FILES ${CMAKE_BINARY_DIR}/GPUIConfig.cmake DESTINATION lib/gpui)
# export the GPUI package
export(PACKAGE GPUI)
option(GPUI_BUILD_TESTS "Build the gpui tests." OFF)
add_subdirectory(src)
enable_testing()