Skip to content

Commit 3a92246

Browse files
Try to install libsyclinterface/include/*.hpp files into separate folder
1 parent 85246b9 commit 3a92246

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

libsyclinterface/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
cmake_minimum_required(VERSION 3.10...3.22 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.21...3.22 FATAL_ERROR)
22

33
project(
44
"libDPCTLSYCLInterface"
5+
LANGUAGES C CXX
56
DESCRIPTION "A C API for a subset of SYCL"
67
)
78

@@ -260,10 +261,12 @@ endif()
260261
# Install all headers
261262

262263
file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
263-
file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp")
264+
file(GLOB MAIN_CXX_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp")
264265
file(GLOB SUPPORT_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Support/*.h")
265266
file(GLOB CONFIG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Config/*.h")
266267

268+
message(STATUS "++++++++++ MAIN_CXX_HEADERS: ${MAIN_CXX_HEADERS}")
269+
267270
set_target_properties(DPCTLSyclInterface
268271
PROPERTIES PUBLIC_HEADER
269272
"${MAIN_HEADERS}"
@@ -288,6 +291,10 @@ install(TARGETS
288291
PUBLIC_HEADER
289292
DESTINATION ${_include_destination}
290293
)
294+
install(
295+
FILES ${MAIN_CXX_HEADERS}
296+
DESTINATION ${_include_destination}/_cxx
297+
)
291298
install(
292299
FILES ${SUPPORT_HEADERS}
293300
DESTINATION ${_include_destination}/Support

0 commit comments

Comments
 (0)