Debian Codegraph @

Xpjproject/tests/cmake/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.16)
2 project(pj_find_package_test C CXX)
3
4 find_package(Pj REQUIRED)
5
6 # C consumer: exercise pjsua-lib (C API) and the full dependency chain
7 # (pjsua-lib -> pjsip -> pjmedia -> Pj::Dep::SRTP etc.)
8 add_executable(test_consumer test_consumer.c)
9 target_link_libraries(test_consumer PRIVATE Pj::pjsua-lib)
10
11 # C++ consumer: exercise pjsua2 (C++ API) and transitive dependencies
12 add_executable(test_consumer2 test_consumer2.cpp)
13 target_link_libraries(test_consumer2 PRIVATE Pj::pjsua2)