Skip to content

Commit 8f9053f

Browse files
committed
Format CMake with gersemi
1 parent d7dd1d0 commit 8f9053f

File tree

1 file changed

+47
-45
lines changed

1 file changed

+47
-45
lines changed

CMakeLists.txt

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -19,60 +19,60 @@ set(CMAKE_C_VISIBILITY_PRESET hidden)
1919
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
2020
set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE)
2121

22+
set(
23+
libdshowcapture_SOURCES
24+
external/capture-device-support/Library/EGAVResult.cpp
25+
external/capture-device-support/Library/ElgatoUVCDevice.cpp
26+
external/capture-device-support/Library/win/EGAVHIDImplementation.cpp
27+
external/capture-device-support/SampleCode/DriverInterface.cpp
28+
source/capture-filter.cpp
29+
source/output-filter.cpp
30+
source/dshowcapture.cpp
31+
source/dshowencode.cpp
32+
source/device.cpp
33+
source/device-vendor.cpp
34+
source/encoder.cpp
35+
source/dshow-base.cpp
36+
source/dshow-demux.cpp
37+
source/dshow-enum.cpp
38+
source/dshow-formats.cpp
39+
source/dshow-media-type.cpp
40+
source/dshow-encoded-device.cpp
41+
source/log.cpp
42+
)
2243

23-
set(libdshowcapture_SOURCES
24-
external/capture-device-support/Library/EGAVResult.cpp
25-
external/capture-device-support/Library/ElgatoUVCDevice.cpp
26-
external/capture-device-support/Library/win/EGAVHIDImplementation.cpp
27-
external/capture-device-support/SampleCode/DriverInterface.cpp
28-
source/capture-filter.cpp
29-
source/output-filter.cpp
30-
source/dshowcapture.cpp
31-
source/dshowencode.cpp
32-
source/device.cpp
33-
source/device-vendor.cpp
34-
source/encoder.cpp
35-
source/dshow-base.cpp
36-
source/dshow-demux.cpp
37-
source/dshow-enum.cpp
38-
source/dshow-formats.cpp
39-
source/dshow-media-type.cpp
40-
source/dshow-encoded-device.cpp
41-
source/log.cpp)
42-
43-
set(libdshowcapture_HEADERS
44-
dshowcapture.hpp
45-
source/external/IVideoCaptureFilter.h
46-
source/capture-filter.hpp
47-
source/output-filter.hpp
48-
source/device.hpp
49-
source/encoder.hpp
50-
source/dshow-base.hpp
51-
source/dshow-demux.hpp
52-
source/dshow-device-defs.hpp
53-
source/dshow-enum.hpp
54-
source/dshow-formats.hpp
55-
source/dshow-media-type.hpp
56-
source/log.hpp)
44+
set(
45+
libdshowcapture_HEADERS
46+
dshowcapture.hpp
47+
source/external/IVideoCaptureFilter.h
48+
source/capture-filter.hpp
49+
source/output-filter.hpp
50+
source/device.hpp
51+
source/encoder.hpp
52+
source/dshow-base.hpp
53+
source/dshow-demux.hpp
54+
source/dshow-device-defs.hpp
55+
source/dshow-enum.hpp
56+
source/dshow-formats.hpp
57+
source/dshow-media-type.hpp
58+
source/log.hpp
59+
)
5760

58-
add_library(libdshowcapture ${libdshowcapture_SOURCES}
59-
${libdshowcapture_HEADERS})
61+
add_library(libdshowcapture ${libdshowcapture_SOURCES} ${libdshowcapture_HEADERS})
6062

6163
# Set /W4
6264
# Disable pointless constant condition warnings
6365
target_compile_options(libdshowcapture PRIVATE /W4 /wd4127 /wd4201)
6466

6567
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
66-
target_link_options(libdshowcapture PRIVATE
67-
/SAFESEH:NO
68-
)
68+
target_link_options(libdshowcapture PRIVATE /SAFESEH:NO)
6969
endif()
7070

71-
target_include_directories(
72-
libdshowcapture
73-
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/external/capture-device-support/Library)
71+
target_include_directories(libdshowcapture PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/external/capture-device-support/Library)
7472

75-
target_compile_definitions(libdshowcapture PRIVATE
73+
target_compile_definitions(
74+
libdshowcapture
75+
PRIVATE
7676
UNICODE
7777
_UNICODE
7878
$<$<CONFIG:DEBUG>:DEBUG>
@@ -81,5 +81,7 @@ target_compile_definitions(libdshowcapture PRIVATE
8181
_UP_WINDOWS=1
8282
)
8383

84-
target_link_libraries(libdshowcapture PRIVATE setupapi strmiids ksuser winmm
85-
wmcodecdspuuid)
84+
target_link_libraries(
85+
libdshowcapture
86+
PRIVATE setupapi strmiids ksuser winmm wmcodecdspuuid
87+
)

0 commit comments

Comments
 (0)