Commit 5798a261 authored by Aitor Henry's avatar Aitor Henry

Cmake ok

parent 13e64125
# CMakeLists.txt for Pointgrey camera
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
SET(pointgrey_srcs src/PointGreyCamera.cpp src/PointGreyInterface.cpp
src/PointGreyDetInfoCtrlObj.cpp src/PointGreySyncCtrlObj.cpp)
FILE(STRINGS "VERSION" pointgrey_vers)
ADD_LIBRARY(limapointgrey SHARED ${pointgrey_srcs})
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${COMMON_PATH}/../include/flycapture")
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${COMMON_PATH}/../include/flycapture/C")
FIND_LIBRARY(POINTGREY_LIB_FLYCAPTURE flycapture)
TARGET_LINK_LIBRARIES(limapointgrey limacore)
TARGET_LINK_LIBRARIES(limapointgrey ${POINTGREY_LIB_FLYCAPTURE})
SET_TARGET_PROPERTIES(limapointgrey PROPERTIES VERSION ${pointgrey_vers} SOVERSION "1")
INSTALL(TARGETS limapointgrey LIBRARY DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "pointgrey")
SET(INCLUDES)
FILE(GLOB sipfiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/sip" "${CMAKE_CURRENT_SOURCE_DIR}/sip/*.sip")
FOREACH(sipfile ${sipfiles})
SET(INCLUDES
"${INCLUDES}
%Include ${sipfile}")
ENDFOREACH()
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sip/limamodules.sip.in sip/limapointgrey.sip)
SET(SIP_CONCAT_PARTS 1)
SET(SIP_INCLUDES ${SIP_INCLUDES}
"${CMAKE_SOURCE_DIR}/third-party/Processlib/sip"
"${CMAKE_BINARY_DIR}/sip/core"
"${CMAKE_SOURCE_DIR}/third-party/Processlib/tasks/sip"
"${CMAKE_SOURCE_DIR}/common/sip"
"${CMAKE_SOURCE_DIR}/hardware/sip"
"${CMAKE_SOURCE_DIR}/control/sip"
"${CMAKE_SOURCE_DIR}/control/software_operation/sip"
"${CMAKE_CURRENT_SOURCE_DIR}/sip")
set(SIP_DISABLE_FEATURES WITH_CONFIG)
set(SIP_CHECK_EXC ON)
ADD_SIP_PYTHON_MODULE(limapointgrey ${CMAKE_CURRENT_BINARY_DIR}/sip/limapointgrey.sip)
TARGET_INCLUDE_DIRECTORIES(python_module_limapointgrey PRIVATE
${PYTHON_INCLUDE_DIRS}
"${CMAKE_SOURCE_DIR}/sip"
"${CMAKE_SOURCE_DIR}/sip/core")
TARGET_LINK_LIBRARIES(python_module_limapointgrey limapointgrey)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/PointGrey")
ENDIF()
......@@ -19,22 +19,6 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
from Lima import module_helper
mod_path = __path__
depends_on = 'Core'
has_dependent = False
cleanup_data = module_helper.load_prepare(mod_path, depends_on, has_dependent)
from Lima import Core
cleanup_data = module_helper.load_dep_cleanup(cleanup_data)
from Lima.PointGrey.limapointgrey import PointGrey as _PG
from limapointgrey import PointGrey as _PG
globals().update(_PG.__dict__)
module_helper.load_cleanup(cleanup_data)
del mod_path, depends_on, has_dependent, cleanup_data
del module_helper
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment