mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
make compile of tests optional and disabled by default
Former-commit-id: dc05b637391ec5b7e79d66d94724828e8dbd2653
This commit is contained in:
parent
153d1f0999
commit
12b406dd4b
@ -40,6 +40,9 @@ message(STATUS "ENABLE_X11 = " ${ENABLE_X11})
|
|||||||
option(ENABLE_QT5 "Enable QT5" OFF)
|
option(ENABLE_QT5 "Enable QT5" OFF)
|
||||||
message(STATUS "ENABLE_QT5 = " ${ENABLE_QT5})
|
message(STATUS "ENABLE_QT5 = " ${ENABLE_QT5})
|
||||||
|
|
||||||
|
option(ENABLE_TESTS "Compile additional test applications" OFF)
|
||||||
|
message(STATUS "ENABLE_TESTS = " ${ENABLE_TESTS})
|
||||||
|
|
||||||
if(ENABLE_V4L2 AND NOT ENABLE_PROTOBUF)
|
if(ENABLE_V4L2 AND NOT ENABLE_PROTOBUF)
|
||||||
message(FATAL_ERROR "V4L2 grabber requires PROTOBUF. Disable V4L2 or enable PROTOBUF")
|
message(FATAL_ERROR "V4L2 grabber requires PROTOBUF. Disable V4L2 or enable PROTOBUF")
|
||||||
endif(ENABLE_V4L2 AND NOT ENABLE_PROTOBUF)
|
endif(ENABLE_V4L2 AND NOT ENABLE_PROTOBUF)
|
||||||
@ -57,7 +60,6 @@ if(ENABLE_OSX AND ENABLE_DISPMANX)
|
|||||||
endif(ENABLE_OSX AND ENABLE_DISPMANX)
|
endif(ENABLE_OSX AND ENABLE_DISPMANX)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if(ENABLE_QT5)
|
#if(ENABLE_QT5)
|
||||||
# TODO vs ENABLE_QT4?
|
# TODO vs ENABLE_QT4?
|
||||||
#endif(ENABLE_QT5)
|
#endif(ENABLE_QT5)
|
||||||
@ -138,7 +140,10 @@ configure_file(config/hyperion_x86.config.json ${LIBRARY_OUTPUT_PATH} @ONLY)
|
|||||||
add_subdirectory(dependencies)
|
add_subdirectory(dependencies)
|
||||||
add_subdirectory(libsrc)
|
add_subdirectory(libsrc)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(test)
|
if (ENABLE_TESTS)
|
||||||
|
add_subdirectory(test)
|
||||||
|
endif (ENABLE_TESTS)
|
||||||
|
|
||||||
|
|
||||||
# Add the doxygen generation directory
|
# Add the doxygen generation directory
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
Loading…
Reference in New Issue
Block a user