Skip to content
Snippets Groups Projects
Commit f522a2c6 authored by BRONES Romain's avatar BRONES Romain
Browse files

Add the simple test for ChimeraTK

parent dde6fdf0
No related branches found
No related tags found
No related merge requests found
#include <ChimeraTK/Device.h>
int main(){
ChimeraTK::setDMapFilePath("soleil-fofb.dmap");
ChimeraTK::Device dev("CNUIO");
dev.open();
auto acc = dev.getScalarRegisterAccessor<uint32_t>("ccn_packeter_0.VERSION");
acc.read();
}
SUMMARY = "Simple test for ChimeraTK"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
inherit pkgconfig
SRC_URI = "file://testread.cpp"
S = "${WORKDIR}"
DEPENDS = "deviceaccess"
do_compile() {
${CXX} `pkg-config ChimeraTK-DeviceAccess --cflags --libs` testread.cpp -o testread
}
do_install() {
install -d ${D}/${bindir}/
install -m 0755 testread ${D}/${bindir}
}
INSANE_SKIP_${PN} = "ldflags"
......@@ -30,6 +30,7 @@ IMAGE_INSTALL_append = " python3-asyncua"
IMAGE_INSTALL_append = " deviceaccess"
IMAGE_INSTALL_append = " deviceaccess-python-bindings"
IMAGE_INSTALL_append = " xilinx-xvc-server"
IMAGE_INSTALL_append = " simple-test"
#IMAGE_INSTALL_append = " python3-pytango"
#IMAGE_INSTALL_append = " cifs-utils"
#IMAGE_INSTALL_append = " boost"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment