Hello!
I'm learning cmake and i run into a problem.
the code that I compiled with qmake/make from a .pro file it builds OK.
So I've wrote a CMakeLists.txt like on the wiki and made some changes.
cmake process execute with no errors, but make returns me this:
any clue?Linking CXX executable test.x
CMakeFiles/test.x.dir/bgPannel.cpp.o: In function `BGPannel::BGPannel(QWidget*, char const*)':
bgPannel.cpp.text+0x15d): undefined reference to `vtable for BGPannel'
bgPannel.cpp.text+0x16c): undefined reference to `vtable for BGPannel'
CMakeFiles/test.x.dir/bgPannel.cpp.o: In function `BGPannel::BGPannel(QWidget*, char const*)':
bgPannel.cpp.text+0x4d9): undefined reference to `vtable for BGPannel'
bgPannel.cpp.text+0x4e8): undefined reference to `vtable for BGPannel'
collect2: ld returned 1 exit status
make[2]: *** [test.x] Error 1
make[1]: *** [CMakeFiles/test.x.dir/all] Error 2
make: *** [all] Error 2
as I understand the problem should be in finding .h file, but don't know how to implement it in CMakeLists.txt
the CMakeLists.txt and .pro are attached.
Bookmarks