-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathoptions.cmake
More file actions
51 lines (37 loc) · 2.11 KB
/
Copy pathoptions.cmake
File metadata and controls
51 lines (37 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Option to only build the library
option(BMX_BUILD_LIB_ONLY "Build bmx, MXF and MXF++ libraries only" OFF)
# Option to build testing
# This option is ignored if BUILD_TESTING is defined and falsy
option(BMX_BUILD_TESTING "Build testing" ON)
# Option to build all the apps
option(BMX_BUILD_APPS "Build all the apps" ON)
# Option to build all the tools
option(BMX_BUILD_TOOLS "Build all the tools" ON)
# Option to change the directory where test sample files are written
set(BMX_TEST_SAMPLES_DIR "test_samples" CACHE STRING "Directory for writing test sample files")
# Option to enable testing of large files
option(BMX_TEST_LARGE_FILE "Test large (>4GB) files" OFF)
if(UNIX)
# Option to build a shared object library
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
# Run tests with valgrind
option(BMX_TEST_WITH_VALGRIND "Run tests with valgrind" OFF)
# Option to build libMXF from an installed library found using pkg-config
option(BMX_BUILD_LIBMXF_LIB "Build libMXF from installed library" OFF)
# Option to build libMXF++ from an installed library found using pkg-config
option(BMX_BUILD_LIBMXFPP_LIB "Build libMXF++ from installed library" OFF)
# Build with libcurl for reading MXF files over HTTP(s)
option(BMX_BUILD_WITH_LIBCURL "Build with libcurl library" OFF)
# Option to build expat from source in deps/ or from the git repo
option(BMX_BUILD_EXPAT_SOURCE "Build expat from source" OFF)
# Option to build uriparser from source in deps/ or from the git repo
option(BMX_BUILD_URIPARSER_SOURCE "Build uriparser from source" OFF)
elseif(MSVC)
# Shared library currently not supported
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build using shared libraries")
# Option to build expat from source in deps/ or from the git repo
option(BMX_BUILD_EXPAT_SOURCE "Build expat from source" ON)
# Option to set to use the runtime
set(BMX_SET_MSVC_RUNTIME "MD" CACHE STRING "Set MSVC debug/release runtime to 'MD' (MultiThreadedDLL), 'MT' (MultiThreaded) or 'default' (use the default)")
set_property(CACHE BMX_SET_MSVC_RUNTIME PROPERTY STRINGS MD MT default)
endif()