-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (43 loc) · 1.23 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
# Add the OSQP headers
set(
osqp_headers
"${CMAKE_CURRENT_SOURCE_DIR}/algebra_vector.h"
"${CMAKE_CURRENT_SOURCE_DIR}/algebra_matrix.h"
"${CMAKE_CURRENT_SOURCE_DIR}/auxil.h"
"${CMAKE_CURRENT_SOURCE_DIR}/csc_type.h"
"${CMAKE_CURRENT_SOURCE_DIR}/error.h"
"${CMAKE_CURRENT_SOURCE_DIR}/glob_opts.h"
"${CMAKE_CURRENT_SOURCE_DIR}/lin_alg.h"
"${CMAKE_CURRENT_SOURCE_DIR}/osqp.h"
"${CMAKE_CURRENT_SOURCE_DIR}/osqp_api_constants.h"
"${CMAKE_CURRENT_SOURCE_DIR}/osqp_api_functions.h"
"${CMAKE_CURRENT_SOURCE_DIR}/osqp_api_types.h"
"${CMAKE_CURRENT_SOURCE_DIR}/osqp_configure.h"
"${CMAKE_CURRENT_SOURCE_DIR}/proj.h"
"${CMAKE_CURRENT_SOURCE_DIR}/scaling.h"
"${CMAKE_CURRENT_SOURCE_DIR}/types.h"
"${CMAKE_CURRENT_SOURCE_DIR}/util.h"
)
# Add more files that should only be in non-embedded code
# if (NOT DEFINED EMBEDDED)
list(
APPEND
osqp_headers
"${CMAKE_CURRENT_SOURCE_DIR}/polish.h"
"${CMAKE_CURRENT_SOURCE_DIR}/lin_sys.h"
)
# endif()
# Add the ctrl-c handler if enabled
if (CTRLC)
list(
APPEND
osqp_headers
"${CMAKE_CURRENT_SOURCE_DIR}/ctrlc.h"
)
endif()
# Pass the header list up to the main CMakeLists scope
set(
osqp_headers
"${osqp_headers}"
PARENT_SCOPE
)