-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
130 lines (120 loc) · 3.99 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
cmake_minimum_required(VERSION 2.6)
set(PROJECT_NAME scpiexch)
set(PROJECT_LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(COMPILE_FLAGS -Wall -Wextra -Werror)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
endif()
project(${PROJECT_NAME} ${PROJECT_LANGUAGES})
include_directories(
"socket_api/include/"
"include/"
"include/common/"
"include/scpi/"
"include/io/"
"include/ieee488/"
)
set(SOURCES
src/io/io.cpp
src/io/io_error.cpp
src/ieee488/ieee488_io.cpp
src/ieee488/ieee488_mnemonics.cpp
src/scpi/scpi_mnemonics.cpp
src/scpi/scpi.cpp
src/scpi/scpi_base.cpp
src/scpi/scpi_current_subsystem.cpp
src/scpi/scpi_error.cpp
src/scpi/scpi_frequency_subsystem.cpp
src/scpi/scpi_input_subsystem.cpp
src/scpi/scpi_measure_subsystem.cpp
src/scpi/scpi_output_subsystem.cpp
src/scpi/scpi_power_subsystem.cpp
src/scpi/scpi_sense_bandwidth_subsystem.cpp
src/scpi/scpi_sense_frequency_subsystem.cpp
src/scpi/scpi_sense_subsystem.cpp
src/scpi/scpi_sense_sweep_subsystem.cpp
src/scpi/scpi_source_current_subsystem.cpp
src/scpi/scpi_source_frequency_subsystem.cpp
src/scpi/scpi_source_marker_subsystem.cpp
src/scpi/scpi_source_power_subsystem.cpp
src/scpi/scpi_source_subsystem.cpp
src/scpi/scpi_source_voltage_subsystem.cpp
src/scpi/scpi_sweep_subsystem.cpp
src/scpi/scpi_system_subsystem.cpp
src/scpi/scpi_trigger_subsystem.cpp
src/scpi/scpi_unit_subsystem.cpp
src/scpi/scpi_units_type.cpp
src/scpi/scpi_voltage_subsystem.cpp
src/scpi/scpi_status_subsystem.cpp
src/scpi/scpi_display_subsystem.cpp
)
set(HEADERS
include/common/const_string.h
include/common/const_string.hpp
include/io/io.h
include/io/io_error.h
include/ieee488/ieee488_io.h
include/ieee488/ieee488_constants.h
include/ieee488/ieee488_mnemonics.h
include/ieee488/ieee488_registers_type.h
include/scpi/scpi.h
include/scpi/scpi_base.h
include/scpi/scpi_base.hpp
include/scpi/scpi_channel_type.h
include/scpi/scpi_constants.h
include/scpi/scpi_current_subsystem.h
include/scpi/scpi_display_subsystem.h
include/scpi/scpi_error.h
include/scpi/scpi_frequency_subsystem.h
include/scpi/scpi_input_subsystem.h
include/scpi/scpi_source_level_commands.h
include/scpi/scpi_source_level_commands.hpp
include/scpi/scpi_measure_subsystem.h
include/scpi/scpi_mnemonics.h
include/scpi/scpi_output_subsystem.h
include/scpi/scpi_power_subsystem.h
include/scpi/scpi_source_protection_commands.h
include/scpi/scpi_source_protection_commands.hpp
include/scpi/scpi_registers_type.h
include/scpi/scpi_sense_bandwidth_subsystem.h
include/scpi/scpi_sense_frequency_subsystem.h
include/scpi/scpi_sense_subsystem.h
include/scpi/scpi_sense_sweep_subsystem.h
include/scpi/scpi_source_current_subsystem.h
include/scpi/scpi_source_frequency_subsystem.h
include/scpi/scpi_source_marker_subsystem.h
include/scpi/scpi_source_power_subsystem.h
include/scpi/scpi_source_subsystem.h
include/scpi/scpi_source_voltage_subsystem.h
include/scpi/scpi_status_subsystem.h
include/scpi/scpi_status_subsystem.hpp
include/scpi/scpi_sweep_subsystem.h
include/scpi/scpi_system_subsystem.h
include/scpi/scpi_unit_subsystem.h
include/scpi/scpi_voltage_subsystem.h
include/scpi/scpi_trigger_subsystem.h
include/scpi/scpi_units_type.h
include/scpi/scpi_frequency_mnemonics.h
include/scpi/scpi_display_mnemonics.h
include/scpi/scpi_measure_mnemonics.h
include/scpi/scpi_sweep_mnemonics.h
include/scpi/scpi_output_mnemonics.h
include/scpi/scpi_unit_mnemonics.h
include/scpi/scpi_input_mnemonics.h
include/scpi/scpi_status_mnemonics.h
include/scpi/scpi_system_mnemonics.h
include/scpi/scpi_trigger_mnemonics.h
include/scpi/scpi_source_level_mnemonics.h
include/scpi/scpi_source_protection_mnemonics.h
include/scpi/scpi_sense_bandwidth_mnemonics.h
include/scpi_api.h
include/scpi_export.h
include/common/register_type.h
include/common/register_type.hpp
)
add_subdirectory(socket_api)
add_library(${PROJECT_NAME} ${SOURCES} ${HEADERS})
target_link_libraries(${PROJECT_NAME} socketapi)
add_subdirectory(example)