mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Merge pull request #233 from bradlarsen/develop
Add CMake options for more build granularity
This commit is contained in:
commit
9db7b529e2
@ -1221,11 +1221,17 @@ if (NOT BUILD_STATIC_LIBS)
|
||||
endif ()
|
||||
|
||||
add_subdirectory(util)
|
||||
add_subdirectory(unit)
|
||||
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/tools/CMakeLists.txt)
|
||||
option(BUILD_UNIT "Build Hyperscan unit tests (default TRUE)" TRUE)
|
||||
if(BUILD_UNIT)
|
||||
add_subdirectory(unit)
|
||||
endif()
|
||||
|
||||
option(BUILD_TOOLS "Build Hyperscan tools (default TRUE)" TRUE)
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/tools/CMakeLists.txt AND BUILD_TOOLS)
|
||||
add_subdirectory(tools)
|
||||
endif()
|
||||
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/chimera/CMakeLists.txt AND BUILD_CHIMERA)
|
||||
add_subdirectory(chimera)
|
||||
endif()
|
||||
@ -1240,4 +1246,7 @@ if(BUILD_BENCHMARKS)
|
||||
add_subdirectory(benchmarks)
|
||||
endif()
|
||||
|
||||
option(BUILD_DOC "Build the Hyperscan documentation (default TRUE)" TRUE)
|
||||
if(BUILD_DOC)
|
||||
add_subdirectory(doc/dev-reference)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user