mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] cmake: standardize indentation to 2 spaces
This commit is contained in:
@@ -2,22 +2,22 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(platform_Linux LANGUAGES C)
|
||||
|
||||
include_directories(
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
add_library(platform_Linux STATIC
|
||||
src/platform.c
|
||||
src/platform.c
|
||||
)
|
||||
|
||||
add_subdirectory("capture")
|
||||
|
||||
target_link_libraries(platform_Linux
|
||||
m
|
||||
capture
|
||||
pthread
|
||||
m
|
||||
capture
|
||||
pthread
|
||||
)
|
||||
|
||||
target_include_directories(platform_Linux
|
||||
PRIVATE
|
||||
src
|
||||
PRIVATE
|
||||
src
|
||||
)
|
||||
|
@@ -2,17 +2,17 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(capture_XCB LANGUAGES C)
|
||||
|
||||
add_library(capture_XCB STATIC
|
||||
src/xcb.c
|
||||
src/xcb.c
|
||||
)
|
||||
|
||||
target_link_libraries(capture_XCB
|
||||
lg_common
|
||||
xcb
|
||||
xcb-shm
|
||||
xcb-xfixes
|
||||
lg_common
|
||||
xcb
|
||||
xcb-shm
|
||||
xcb-xfixes
|
||||
)
|
||||
|
||||
target_include_directories(capture_XCB
|
||||
PRIVATE
|
||||
src
|
||||
PRIVATE
|
||||
src
|
||||
)
|
||||
|
@@ -3,23 +3,23 @@ project(capture_pipewire LANGUAGES C)
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(CAPTURE_PIPEWIRE REQUIRED IMPORTED_TARGET
|
||||
gio-2.0
|
||||
gio-unix-2.0
|
||||
libpipewire-0.3
|
||||
libspa-0.2
|
||||
gio-2.0
|
||||
gio-unix-2.0
|
||||
libpipewire-0.3
|
||||
libspa-0.2
|
||||
)
|
||||
|
||||
add_library(capture_pipewire STATIC
|
||||
src/pipewire.c
|
||||
src/portal.c
|
||||
src/pipewire.c
|
||||
src/portal.c
|
||||
)
|
||||
|
||||
target_link_libraries(capture_pipewire
|
||||
PkgConfig::CAPTURE_PIPEWIRE
|
||||
lg_common
|
||||
PkgConfig::CAPTURE_PIPEWIRE
|
||||
lg_common
|
||||
)
|
||||
|
||||
target_include_directories(capture_pipewire
|
||||
PRIVATE
|
||||
src
|
||||
PRIVATE
|
||||
src
|
||||
)
|
||||
|
@@ -2,14 +2,14 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(platform_Windows LANGUAGES C)
|
||||
|
||||
include_directories(
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
add_library(platform_Windows STATIC
|
||||
src/platform.c
|
||||
src/service.c
|
||||
src/mousehook.c
|
||||
src/force_compose.c
|
||||
src/platform.c
|
||||
src/service.c
|
||||
src/mousehook.c
|
||||
src/force_compose.c
|
||||
)
|
||||
|
||||
# allow use of functions for Windows 7 or later
|
||||
@@ -18,21 +18,21 @@ add_compile_definitions(WINVER=0x0601 _WIN32_WINNT=0x0601)
|
||||
add_subdirectory("capture")
|
||||
|
||||
target_link_libraries(platform_Windows
|
||||
lg_common
|
||||
capture
|
||||
lg_common
|
||||
capture
|
||||
|
||||
userenv
|
||||
wtsapi32
|
||||
psapi
|
||||
shlwapi
|
||||
powrprof
|
||||
rpcrt4
|
||||
avrt
|
||||
userenv
|
||||
wtsapi32
|
||||
psapi
|
||||
shlwapi
|
||||
powrprof
|
||||
rpcrt4
|
||||
avrt
|
||||
)
|
||||
|
||||
target_include_directories(platform_Windows
|
||||
PRIVATE
|
||||
src
|
||||
PRIVATE
|
||||
src
|
||||
)
|
||||
|
||||
# these are for the nsis installer generator
|
||||
|
@@ -2,24 +2,24 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(capture_DXGI LANGUAGES C)
|
||||
|
||||
add_library(capture_DXGI STATIC
|
||||
src/dxgi.c
|
||||
src/d3d11.c
|
||||
src/d3d12.c
|
||||
src/ods_capture.c
|
||||
src/util.c
|
||||
src/dxgi.c
|
||||
src/d3d11.c
|
||||
src/d3d12.c
|
||||
src/ods_capture.c
|
||||
src/util.c
|
||||
)
|
||||
|
||||
add_definitions("-DCOBJMACROS -DINITGUID")
|
||||
|
||||
target_link_libraries(capture_DXGI
|
||||
lg_common
|
||||
d3d11
|
||||
dxgi
|
||||
dwmapi
|
||||
lg_common
|
||||
d3d11
|
||||
dxgi
|
||||
dwmapi
|
||||
)
|
||||
|
||||
target_include_directories(capture_DXGI
|
||||
PRIVATE
|
||||
src
|
||||
"${PROJECT_TOP}/vendor/directx"
|
||||
PRIVATE
|
||||
src
|
||||
"${PROJECT_TOP}/vendor/directx"
|
||||
)
|
||||
|
@@ -2,20 +2,20 @@ cmake_minimum_required(VERSION 3.0)
|
||||
project(capture_NVFBC LANGUAGES C CXX)
|
||||
|
||||
add_library(capture_NVFBC STATIC
|
||||
src/nvfbc.c
|
||||
src/wrapper.cpp
|
||||
src/nvfbc.c
|
||||
src/wrapper.cpp
|
||||
)
|
||||
|
||||
file(TO_CMAKE_PATH "${NVFBC_SDK}" nvfbc_sdk)
|
||||
include_directories(file, "${nvfbc_sdk}/inc")
|
||||
|
||||
target_link_libraries(capture_NVFBC
|
||||
platform_Windows
|
||||
dwmapi
|
||||
d3d9
|
||||
platform_Windows
|
||||
dwmapi
|
||||
d3d9
|
||||
)
|
||||
|
||||
target_include_directories(capture_NVFBC
|
||||
PRIVATE
|
||||
src
|
||||
PRIVATE
|
||||
src
|
||||
)
|
||||
|
Reference in New Issue
Block a user