-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix playerone cmake and build process
- Loading branch information
Showing
3 changed files
with
45 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
# - Try to find PlayerOne Library | ||
# Once done this will define | ||
# | ||
# POA_FOUND - system has POA | ||
# POA_INCLUDE_DIR - the POA include directory | ||
# POA_LIBRARIES - Link these to use ASI | ||
# PLAYERONE_FOUND - system has PLAYERONE | ||
# PLAYERONE_INCLUDE_DIR - the PLAYERONE include directory | ||
# PLAYERONE_LIBRARIES - Link these to use ASI | ||
|
||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
if (POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
if (PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) | ||
|
||
# in cache already | ||
set(POA_FOUND TRUE) | ||
message(STATUS "Found libplayerone: ${POA_LIBRARIES}") | ||
set(PLAYERONE_FOUND TRUE) | ||
message(STATUS "Found libplayerone: ${PLAYERONE_LIBRARIES}") | ||
|
||
else (POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
else (PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) | ||
|
||
find_path(POA_INCLUDE_DIR PlayerOneCamera.h | ||
find_path(PLAYERONE_INCLUDE_DIR PlayerOneCamera.h | ||
PATH_SUFFIXES libplayerone | ||
${_obIncDir} | ||
${GNUWIN32_DIR}/include | ||
) | ||
|
||
find_library(POACAM_LIBRARIES NAMES PlayerOneCamera | ||
find_library(PLAYERONECAM_LIBRARIES NAMES PlayerOneCamera | ||
PATHS | ||
${_obLinkDir} | ||
${GNUWIN32_DIR}/lib | ||
) | ||
|
||
|
||
if (POACAM_LIBRARIES) | ||
set(POA_LIBRARIES ${POACAM_LIBRARIES}) | ||
endif (POACAM_LIBRARIES) | ||
if (PLAYERONECAM_LIBRARIES) | ||
set(PLAYERONE_LIBRARIES ${PLAYERONECAM_LIBRARIES}) | ||
endif (PLAYERONECAM_LIBRARIES) | ||
|
||
|
||
if(POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
set(POA_FOUND TRUE) | ||
else (POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
set(POA_FOUND FALSE) | ||
endif(POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
if(PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) | ||
set(PLAYERONE_FOUND TRUE) | ||
else (PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) | ||
set(PLAYERONE_FOUND FALSE) | ||
endif(PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) | ||
|
||
|
||
if (POA_FOUND) | ||
if (NOT POA_FIND_QUIETLY) | ||
message(STATUS "Found PLAYERONE: ${POA_LIBRARIES}") | ||
endif (NOT POA_FIND_QUIETLY) | ||
else (POA_FOUND) | ||
if (POA_FIND_REQUIRED) | ||
message(FATAL_ERROR "POA not found. Please install libPlayerOneCamera.2 http://www.indilib.org") | ||
endif (POA_FIND_REQUIRED) | ||
endif (POA_FOUND) | ||
if (PLAYERONE_FOUND) | ||
if (NOT PLAYERONE_FIND_QUIETLY) | ||
message(STATUS "Found PLAYERONE: ${PLAYERONE_LIBRARIES}") | ||
endif (NOT PLAYERONE_FIND_QUIETLY) | ||
else (PLAYERONE_FOUND) | ||
if (PLAYERONE_FIND_REQUIRED) | ||
message(FATAL_ERROR "PLAYERONE not found. Please install libPlayerOneCamera.2 http://www.indilib.org") | ||
endif (PLAYERONE_FIND_REQUIRED) | ||
endif (PLAYERONE_FOUND) | ||
|
||
mark_as_advanced(POA_INCLUDE_DIR POA_LIBRARIES) | ||
mark_as_advanced(PLAYERONE_INCLUDE_DIR PLAYERONE_LIBRARIES) | ||
|
||
endif (POA_INCLUDE_DIR AND POA_LIBRARIES) | ||
endif (PLAYERONE_INCLUDE_DIR AND PLAYERONE_LIBRARIES) |
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
4536dd4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full spelling is better than incomprehensible abbreviations, thank you very much!
BTW, I'd like to update the document for this camera.
Can I replace screen shot on your website?
I also update the version from 0.1 to 0.2 on the document.