I have a small project with a Makefile which I\'m trying to convert to CMake, mostly just to get experience with CMake. For purposes of this example, the project contains a
CMake favours passing the full path to link libraries, so assuming libbingitup.a is in ${CMAKE_SOURCE_DIR}, doing the following should succeed:
${CMAKE_SOURCE_DIR}
add_executable(main main.cpp) target_link_libraries(main ${CMAKE_SOURCE_DIR}/libbingitup.a)