Commit 814ba72e authored by unknown's avatar unknown

temporary cmake for pco

parent fba4a367
#CMakeLists.txt for pco camera
SET(PCO_SDK_DIR "${CMAKE_CURRENT_SOURCE_DIR}/sdkPco" CACHE PATH "location of pco sdk")
#Sources
SET(pco_srcs src/PcoCamera.cpp src/PcoInterface.cpp src/PcoDetInfoCtrlObj.cpp
src/PcoSyncCtrlObj.cpp src/PcoRoiCtrlObj.cpp
src/PcoBufferCtrlObj.cpp src/PcoHwEventCtrlObj.cpp
src/PcoCameraUtils.cpp)
FILE(STRINGS "VERSION" pco_ver)
ADD_LIBRARY(limapco SHARED
${pco_srcs}
)
TARGET_INCLUDE_DIRECTORIES(limapco PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
TARGET_INCLUDE_DIRECTORIES(limapco PUBLIC "${PCO_SDK_DIR}/include")
#LIBRARY
FIND_LIBRARY(PCO_LIB_CAM SC2_Cam ${PCO_SDK_DIR}/lib64)
TARGET_LINK_LIBRARIES(limapco limacore)
TARGET_LINK_LIBRARIES(limapco ${PCO_LIB_CAM})
INSTALL(TARGETS limapco DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "pco")
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/limapco.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(limapco ${CMAKE_CURRENT_BINARY_DIR}/sip/limapco.sip)
TARGET_INCLUDE_DIRECTORIES(python_module_limapco PRIVATE
${PYTHON_INCLUDE_DIRS}
"${CMAKE_SOURCE_DIR}/sip"
"${CMAKE_SOURCE_DIR}/sip/core")
TARGET_LINK_LIBRARIES(python_module_limapco limapco)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Pco")
ENDIF()
......@@ -19,19 +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)
module_helper.load_cleanup(cleanup_data)
del mod_path, depends_on, has_dependent, cleanup_data
del module_helper
from limapco import Pco as _P
globals().update(_P.__dict__)
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