DeviceManager/WinDevice/CMakeLists.txt

24 lines
490 B
CMake
Raw Normal View History

2023-10-09 20:38:38 +08:00
cmake_minimum_required(VERSION 3.12)
2023-10-10 11:54:29 +08:00
project(WinDevice VERSION 0.1 LANGUAGES CXX)
2023-10-09 20:38:38 +08:00
2023-10-10 11:54:29 +08:00
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
2023-10-09 20:38:38 +08:00
2023-10-10 11:54:29 +08:00
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 设置源代码文件编码为UTF-8
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
# 添加sdplog目录
include_directories(include/third_lib)
2023-10-09 20:38:38 +08:00
# 添加功能模块的源文件
2023-10-10 11:54:29 +08:00
set(PROJECT_SOURCES
"src/Audio"
"src/Video"
"src/Utils"
2023-10-09 20:38:38 +08:00
)