Hello !
First of all i will admit that i am not very knowledgable on how cmake work so i apologise if this is a stupid problem …
I have 2 visualGDB projects that compile on my windows machine and send the binary on the target machine ( rasperry pi ) . One is a static library and the other is an application for testing said library using google test. When i compile from visual studio everything work as expected.
However now i need to build it from cmake directly on the target machine ( to setup automatic testing ). To do that i use the command : cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
no errors so far, but when i try to follow it with “make”, i get the output :
[ 12%] Building CXX object googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 16%] Linking CXX static library ../../lib/libgtest_main.a
[ 16%] Built target gtest_main
make[2]: *** No rule to make target ‘..//CMakeFiles/Serlib.dir/depend’. Stop.
make[1]: *** [CMakeFiles/Makefile2:296: ../CMakeFiles/Serlib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
i have joined the cmake file from both the Serlib ( the library ) project and the SerlibUnitTest project. Thank you in advance for the precious help you provide
VisualGDB has been an awesome piece of software and i love it !
Attachments:
You must be
logged in to view attached files.