[SOLVED]Build OpenCV on host with cmake doesn't work

I want to use some openCV features on the PX2 and the host.
Therefore I added the openCV dependencies in the cMake file:

project(environmentmodel C CXX)
find_package(OpenCV REQUIRED)

And link the libraries like:

set(LIBRARIES
    ${Driveworks_LIBRARIES}
    dw_samples_common
    ${OPENCV_LIBS}
)

While building the project i get the following errors:

CMakeFiles/environmentmodel.dir/kalman.cpp.o: In function `kalman::kalman(float, cv::Mat)':
kalman.cpp:(.text+0x1b4): undefined reference to `cv::Mat::create(int, int const*, int)'
kalman.cpp:(.text+0x1d9): undefined reference to `cv::Mat::zeros(int, int, int)'
kalman.cpp:(.text+0x254): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x2cf): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x346): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x3d8): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
kalman.cpp:(.text+0x3e3): undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
kalman.cpp:(.text+0x468): undefined reference to `cv::Mat::copySize(cv::Mat const&)'
kalman.cpp:(.text+0x4e8): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x55a): undefined reference to `cv::Formatter::get(char const*)'
kalman.cpp:(.text+0x5d1): undefined reference to `cv::Mat::eye(int, int, int)'
kalman.cpp:(.text+0x5ea): undefined reference to `cv::operator*(cv::MatExpr const&, double)'
kalman.cpp:(.text+0x67d): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x6f7): undefined reference to `cv::fastFree(void*)'
kalman.cpp:(.text+0x76e): undefined reference to `cv::fastFree(void*)'

Are the additional lines in the cMakeList wrong?

Dear JohannesWestphal,

We had released OpenCV installation guidance on Devzone.
Please see below link. Thansk.
https://devtalk.nvidia.com/default/topic/1019937/faq/opencv/