Mind providing a minimal example?
I've tried both:
```
cmake_minimum_required(VERSION 3.25.2)
project("NetSim")
add_executable(netsim main.cpp)
include(ExternalProject)
ExternalProject_Add(ns3
GIT_REPOSITORY g...@gitlab.com:nsnam/ns-3-dev.git
)
target_link_libraries(netsim PRIVATE
ns3::libcore
ns3::libnetwork
)
```
And
``
cmake_minimum_required(VERSION 3.25.2)
project("NetSim")
add_executable(netsim main.cpp)
include(ExternalProject)
ExternalProject_Add(ns3
GIT_REPOSITORY g...@gitlab.com:nsnam/ns-3-dev.git
)
target_link_libraries(netsim PRIVATE
libcore
libnetwork
)
```
And building with:
```
cmake -B build
cmake --build build
```
And I either can't find the target `ns3::libcore` or I get a linking error
```
`/usr/bin/ld: cannot find -llibcore: No such file or directory
/usr/bin/ld: cannot find -llibnetwork: No such file or directory
collect2: error: ld returned 1 exit status
```
Additionally, I'm struggling to get `find_package` to work.