Anything that could point me in the right direction and help me solve this issue is much appreciated. Here's my CMakeLists.txt in the top level directory: cmake_minimum_required(VERSION 3. include '.\.\include\bananas\bananas.h' I'm not exactly sure what I'm doing wrong, this my first time using CMake so I mostly wrote my CMakeLists file using bits and examples from the internet. I've tried to take into account the solution proposed below by squareskittles. │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeDetermineCompilerABI_C.bin This variable affects the order of include directories generated in compiler command lines. Here is the tree for the overall project tree CMake Documentation cmake-variables (7) CMAKEINCLUDEDIRECTORIESPROJECTBEFORE CMAKEINCLUDEDIRECTORIESPROJECTBEFORE Whether to force prepending of project include directories. Target_link_libraries (run_tests Eigen3::Eigen stdc++fs UnitTest++) SET(CMAKE_CXX_FLAGS "$/./src/position_summary.cpp" SET(GCC_COVERAGE_COMPILE_FLAGS "-no-pie") Here's test/CMakeLists.txt: cmake_minimum_required(VERSION 3.10)įind_package (Eigen3 3.3 REQUIRED NO_MODULE) However, I get a million undefined reference errors, and it can't find things that were defined outside of this test/ directory. So this cmake file that belongs to test/ has to compile and link those guys too. The unusual thing that I'm doing is all of the source files that these tests are testing are not compiled as a library, and that directory has its own CMakeLists.txt, too. I'm trying to write a CMakeLists.txt file for the test/ directory in a project I'm working on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |