cmake: Define ENABLE_HEVC globally if set

master
jpark37 2022-04-23 12:04:49 -07:00 committed by Jim
parent 165a513f78
commit 53f4bf3430
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ endif()
# Global project options
option(ENABLE_HEVC "Enable HEVC encoders" OFF)
if(ENABLE_HEVC)
add_compile_definitions(ENABLE_HEVC)
endif()
option(BUILD_FOR_DISTRIBUTION "Build for distribution (enables optimisations)"
OFF)
option(ENABLE_UI "Enable building with UI (requires Qt)" ON)