how to link all libraries i a different project

  actor, c++, cmake, project

I am using CAF(https://github.com/actor-framework) to work on my project, I want to add all the libraries to work_git.

It’s working with sqlite3 and here’s what I did:

work_git CMake file:

cmake_minimum_required(VERSION 3.17)

project(x)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(resources/sqlite3)

add_subdirectory(resources/caf)

add_executable(work_git main.cpp)

target_link_libraries(work_git sqlite3 caf)

project structure:

|_ _ _ _ work_git
|
|                            _ _ _ _ _ caf
|                           |
|                           |
|_ _ _ _ Resources _ _ _ _ _
|                           |
|                           |
|                            _ _ _ _ _ sqlite3
|

Source: Windows Questions C++

LEAVE A COMMENT