How can I create a lib folder and have lib.so in it? Here is my cmakelists file inside lib folder
project(Library) add_library(Library SHARED lib.cpp) target_include_directories(Library PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) In the main cmakelists file I write:
target_link_libraries(MyProject Library) set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib) but it doesn't work. The file is created inside the folder where make is running.