-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
52 lines (46 loc) · 1.01 KB
/
CMakeLists.txt
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
52
project(amftest)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif()
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS False)
add_subdirectory(dependencies/fmt)
add_library(${PROJECT_NAME} MODULE
source/amf.cpp
source/amf.h
source/encoder.cpp
source/encoder.h
source/encoder_avc.cpp
source/encoder_avc.h
source/encoder_hevc.cpp
source/encoder_hevc.h
source/gsl.h
source/module.cpp
source/module.h
source/plugin.cpp
source/settings.cpp
source/settings.h
source/texture_encoder.cpp
source/texture_encoder.h
source/util.cpp
source/util.h
source/windows.h
)
target_include_directories(${PROJECT_NAME}
SYSTEM PRIVATE
dependencies/include
dependencies/fmt/include
)
target_link_libraries(${PROJECT_NAME}
d3d11
dxgi
dxguid
fmt::fmt
libobs
)
install_obs_plugin(${PROJECT_NAME})