Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ set(CMAKE_CXX_FLAGS_SANITIZE "-g3 -fsanitize=address,leak,undefined")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

option(ALFI_ENABLE_EXAMPLES "Enable examples subdirectory for the ALFI library" ${PROJECT_IS_TOP_LEVEL})
option(ALFI_ENABLE_TESTS "Enable tests subdirectory for the ALFI library" ${PROJECT_IS_TOP_LEVEL})
option(ALFI_ENABLE_BENCHES "Enable benches subdirectory for the ALFI library" ${PROJECT_IS_TOP_LEVEL})

add_subdirectory(ALFI)

add_subdirectory(examples)
if(ALFI_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

enable_testing()
add_subdirectory(tests)
if(ALFI_ENABLE_TESTS)
enable_testing()
add_subdirectory(tests)
endif()

add_subdirectory(benches)
if(ALFI_ENABLE_BENCHES)
add_subdirectory(benches)
endif()