diff --git a/backend/device/include/device/handle.hpp b/backend/device/include/device/handle.hpp index ca2524e..e4928ce 100644 --- a/backend/device/include/device/handle.hpp +++ b/backend/device/include/device/handle.hpp @@ -32,6 +32,7 @@ #include +#include #include namespace hwcpipe { diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 95b0ae4..123a4fd 100755 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -12,6 +12,11 @@ target_link_libraries(api-example PRIVATE hwcpipe ) +install(PROGRAMS $ + DESTINATION bin + RENAME hwcpipe-api-example +) + target_compile_options(api-example PRIVATE -Werror -Wswitch-default diff --git a/hwcpipe/CMakeLists.txt b/hwcpipe/CMakeLists.txt index d1b9115..ac917b9 100644 --- a/hwcpipe/CMakeLists.txt +++ b/hwcpipe/CMakeLists.txt @@ -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() @@ -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 ) \ No newline at end of file