-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
为 RMVLConfig 添加 COMPONENTS 选项,用于指定需要的模块
- Loading branch information
1 parent
1cc8a31
commit d6a282d
Showing
16 changed files
with
282 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
# add the include directories path | ||
find_path( | ||
MvSDK_INCLUDE_DIRS | ||
MvSDK_INCLUDE_DIR | ||
NAMES CameraApi.h CameraDefine.h CameraStatus.h | ||
PATHS "/usr/include" | ||
NO_DEFAULT_PATH | ||
) | ||
|
||
# add libraries | ||
find_library( | ||
MvSDK_LIBS | ||
MvSDK_LIB | ||
PATHS "/lib" | ||
NAMES "libMVSDK.so" | ||
NO_DEFAULT_PATH | ||
) | ||
|
||
if(NOT TARGET mvsdk) | ||
add_library(mvsdk SHARED IMPORTED) | ||
set_target_properties(mvsdk PROPERTIES | ||
IMPORTED_LOCATION "${MvSDK_LIB}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${MvSDK_INCLUDE_DIR}" | ||
) | ||
endif() | ||
|
||
mark_as_advanced(MvSDK_LIB MvSDK_INCLUDE_DIR) | ||
|
||
set(MvSDK_LIBS "mvsdk") | ||
set(MvSDK_INCLUDE_DIRS "${MvSDK_INCLUDE_DIR}") | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args( | ||
MvSDK | ||
REQUIRED_VARS MvSDK_LIBS MvSDK_INCLUDE_DIRS | ||
REQUIRED_VARS MvSDK_LIB MvSDK_INCLUDE_DIR | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.