Undefined reference - problem in CMakeLists?

I have a large amount of code, so I have tried to only include the relevant parts of the code here
Last edited on
larry burns wrote:
/ws/larryburns/cmake/ME/Build/sc/CMakeLists.txt
Typo? Don't CMakeLists.txt files belong in source directories?

I don't see "add_library(ASp ASP_function_implementation.cpp ...)" anywhere
That certainly could be the problem. The above or something similar should be in
ws/larryburns/cmake/ME/sc/ASp/CMakeList.txt

I have limited experience with Cmake but here's how I would do it:
1
2
3
4
5
6
7
set ( src_files
    ASp.cpp
    file_containing_T_B_P_N.cpp
)

add_library( ASp ${src_files} )
    

HTH
Last edited on
Topic archived. No new replies allowed.