File tree Expand file tree Collapse file tree 7 files changed +7
-2
lines changed Expand file tree Collapse file tree 7 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.6 )
2
2
3
- project (libcamera-apps )
3
+ project (libcamera-apps VERSION 1.1.0 )
4
4
5
5
if (NOT EXISTS ${CMAKE_BINARY_DIR} /CMakeCache.txt )
6
6
if (NOT CMAKE_BUILD_TYPE )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set_source_files_properties(version.cpp PROPERTIES GENERATED 1)
10
10
add_library (libcamera_app libcamera_app.cpp post_processor.cpp version .cpp options .cpp )
11
11
add_dependencies (libcamera_app VersionCpp )
12
12
13
- set_target_properties (libcamera_app PROPERTIES PREFIX "" IMPORT_PREFIX "" )
13
+ set_target_properties (libcamera_app PROPERTIES PREFIX "" IMPORT_PREFIX "" VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
14
14
target_link_libraries (libcamera_app pthread preview ${LIBCAMERA_LINK_LIBRARIES} ${Boost_LIBRARIES} post_processing_stages )
15
15
16
16
install (TARGETS libcamera_app LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
Original file line number Diff line number Diff line change 31
31
endif ()
32
32
33
33
add_library (encoders ${SRC} )
34
+ set_target_properties (encoders PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
34
35
target_link_libraries (encoders ${TARGET_LIBS} )
35
36
target_compile_definitions (encoders PUBLIC LIBAV_PRESENT=${LIBAV_PRESENT} )
36
37
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ find_library(TIFF_LIBRARY tiff REQUIRED)
8
8
find_library (PNG_LIBRARY png REQUIRED )
9
9
10
10
add_library (images bmp.cpp yuv.cpp jpeg.cpp png.cpp dng.cpp )
11
+ set_target_properties (images PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
11
12
target_link_libraries (images jpeg exif png tiff )
12
13
13
14
install (TARGETS images LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.6)
3
3
include (GNUInstallDirs )
4
4
5
5
add_library (outputs output .cpp file_output.cpp net_output.cpp circular_output.cpp )
6
+ set_target_properties (outputs PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
6
7
7
8
install (TARGETS outputs LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
8
9
Original file line number Diff line number Diff line change 49
49
endif ()
50
50
51
51
add_library (post_processing_stages ${SRC} )
52
+ set_target_properties (post_processing_stages PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
52
53
target_link_libraries (post_processing_stages ${TARGET_LIBS} )
53
54
target_compile_definitions (post_processing_stages PUBLIC OPENCV_PRESENT=${OpenCV_FOUND} )
54
55
Original file line number Diff line number Diff line change 64
64
endif ()
65
65
66
66
add_library (preview null_preview.cpp ${SRC} )
67
+ set_target_properties (preview PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} )
67
68
target_link_libraries (preview ${TARGET_LIBS} )
68
69
69
70
target_compile_definitions (preview PUBLIC LIBDRM_PRESENT=${DRM_FOUND} )
You can’t perform that action at this time.
0 commit comments