@@ -12,6 +12,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
12
12
find_package (DPCPP REQUIRED )
13
13
14
14
if (DPCTL_ENABLE_LO_PROGRAM_CREATION )
15
+ set (DPCTL_ENABLE_LO_PROGRAM_CREATION 1 )
15
16
find_package (LevelZero REQUIRED )
16
17
endif ()
17
18
@@ -105,14 +106,29 @@ install(
105
106
# Install all headers
106
107
file (GLOB HEADERS
107
108
"${CMAKE_SOURCE_DIR} /include/*.h"
108
- "${CMAKE_SOURCE_DIR} /include/Config/*.h"
109
- "${CMAKE_SOURCE_DIR} /include/Support/*.h"
110
- "${CMAKE_SOURCE_DIR} /helper/include/*.h"
111
109
)
112
110
foreach (HEADER ${HEADERS} )
113
111
install (FILES "${HEADER} " DESTINATION include )
114
112
endforeach ()
115
113
114
+ # Install all headers in include/Support
115
+ file (GLOB HEADERS "${CMAKE_SOURCE_DIR} /include/Support/*.h" )
116
+ foreach (HEADER ${HEADERS} )
117
+ install (FILES "${HEADER} " DESTINATION include /Support )
118
+ endforeach ()
119
+
120
+ # Install all headers in helper/include
121
+ file (GLOB HEADERS "${CMAKE_SOURCE_DIR} /helper/include/*.h" )
122
+ foreach (HEADER ${HEADERS} )
123
+ install (FILES "${HEADER} " DESTINATION helper/include )
124
+ endforeach ()
125
+
126
+ # Install all headers in include/Config
127
+ file (GLOB HEADERS "${CMAKE_SOURCE_DIR} /include/Config/*.h" )
128
+ foreach (HEADER ${HEADERS} )
129
+ install (FILES "${HEADER} " DESTINATION include /Config )
130
+ endforeach ()
131
+
116
132
option (
117
133
DPCTL_BUILD_CAPI_TESTS
118
134
"Build dpctl C API google tests"
0 commit comments