aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-multimedia/audiomanager/audiomanager_%.bbappend
blob: cf552b741d989db2db5806b386367a050e65f828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
EXTRA_OECMAKE = " -DWITH_TESTS=ON -DUSE_BUILD_LIBS=OFF \
    -DTEST_EXECUTABLE_INSTALL_PATH=/opt/tests/${PN}/ \
    -Dgmock_build_tests=ON -Dgtest_build_samples=ON -Dgtest_build_tests=ON \
    -DCMAKE_SKIP_RPATH=ON \
    "

PACKAGES += " ${PN}-test"
do_install_append() {
    cd ${WORKDIR}/build
    install -d ${D}/opt/tests/${PN}
    for i in `find bin/ -type f -regex '.*[tT]est.*'`; do
      install -m 0755 ${i} ${D}/opt/tests/${PN}
    done
    install -m 0755 googleMock/gtest/libgtest_dll.so ${D}/opt/tests/${PN}
}

FILES_${PN}-dbg += " \
    /opt/tests/${PN}/.debug/* \
    "
FILES_${PN}-test = " \
    /opt/tests/${PN}/* \
    "