Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make building of tracccc::io optional (but on by default) #651

Merged
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
19 changes: 15 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ option( TRACCC_BUILD_KOKKOS "Build the Kokkos sources included in traccc"
FALSE )
option( TRACCC_BUILD_ALPAKA "Build the Alpaka sources included in traccc"
FALSE )
option( TRACCC_BUILD_IO "Build the IO module (needed by examples, performance, testing)" TRUE )
option( TRACCC_BUILD_TESTING "Build the (unit) tests of traccc" TRUE )
option( TRACCC_BUILD_EXAMPLES "Build the examples of traccc" TRUE )

Expand Down Expand Up @@ -299,20 +300,30 @@ endif()
if( TRACCC_BUILD_ALPAKA )
add_subdirectory( device/alpaka )
endif()
add_subdirectory( io )
add_subdirectory( performance )
if ( TRACCC_BUILD_IO )
add_subdirectory( io )
add_subdirectory( performance )
add_subdirectory( simulation )
else()
message(STATUS "traccc::io not built, traccc::performance and traccc::simulation are forcefully switched off.")
endif()

add_subdirectory( plugins )
add_subdirectory( simulation )

if ( TRACCC_BUILD_EXAMPLES )
# Find Boost.
find_package( Boost REQUIRED COMPONENTS program_options filesystem)

if ( NOT TRACCC_BUILD_IO )
message(FATAL_ERROR "traccc::io is disabled, but it is required to build the examples.")
endif()
add_subdirectory( examples )
endif()

# Set up the test(s).
if( BUILD_TESTING AND TRACCC_BUILD_TESTING )
if ( NOT TRACCC_BUILD_IO )
message(FATAL_ERROR "traccc::io is disabled, but it is required to build the tests.")
endif()
add_subdirectory( tests )
endif()

Expand Down
Loading