-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
64 lines (52 loc) · 1.62 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
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.15)
# This should go before project declaration.
if (WIN32)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
endif ()
project(Rtl8812auNet)
# the `pkg_check_modules` function is created with this call
find_package(PkgConfig REQUIRED)
# this calls create special `PkgConfig::LIBUSB` variables
pkg_check_modules(LIBUSB REQUIRED IMPORTED_TARGET libusb-1.0)
add_library(WiFiDriver
src/logger.h
hal/Hal8812PhyReg.h
hal/Hal8812PwrSeq.c
hal/Hal8812PwrSeq.h
hal/basic_types.h
hal/hal8812a_fw.c
hal/hal8812a_fw.h
hal/hal_com_reg.h
hal/rtl8812a_hal.h
hal/rtl8812a_recv.h
hal/rtl8812a_spec.h
src/EepromManager.cpp
src/EepromManager.h
src/Firmware.h
src/FirmwareManager.cpp
src/FirmwareManager.h
src/FrameParser.cpp
src/FrameParser.h
src/HalModule.cpp
src/HalModule.h
src/ParsedRadioPacket.cpp
src/RadioManagementModule.cpp
src/RadioManagementModule.h
src/Rtl8812aDevice.cpp
src/Rtl8812aDevice.h
src/RtlUsbAdapter.cpp
src/RtlUsbAdapter.h
src/SelectedChannel.h
src/WiFiDriver.cpp
src/WiFiDriver.h
src/registry_priv.h
)
target_compile_features(WiFiDriver PUBLIC cxx_std_20)
target_link_libraries(WiFiDriver PUBLIC
PkgConfig::LIBUSB
)
target_include_directories(WiFiDriver PUBLIC hal)
target_include_directories(WiFiDriver PUBLIC src)
add_executable(WiFiDriverDemo
demo/main.cpp)
target_link_libraries(WiFiDriverDemo PUBLIC WiFiDriver)