Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/device/include/device/handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <device/api.hpp>

#include <cstdint>
#include <memory>

namespace hwcpipe {
Expand Down
5 changes: 5 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ target_link_libraries(api-example
PRIVATE hwcpipe
)

install(PROGRAMS $<TARGET_FILE:api-example>
DESTINATION bin
RENAME hwcpipe-api-example
)

target_compile_options(api-example
PRIVATE -Werror
-Wswitch-default
Expand Down
14 changes: 14 additions & 0 deletions hwcpipe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ target_compile_options(hwcpipe
-Wswitch-enum
)

set_target_properties(hwcpipe PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
)

if(HWCPIPE_PIC)
set_target_properties(hwcpipe PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
Expand All @@ -31,4 +36,13 @@ target_include_directories(hwcpipe

target_link_libraries(hwcpipe
PUBLIC device
)

install(TARGETS hwcpipe
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

install(DIRECTORY include/
DESTINATION include
)