You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
363 B
14 lines
363 B
|
|
cmake_minimum_required(VERSION 3.0)
|
|
project(FindDependency)
|
|
|
|
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/packages")
|
|
|
|
find_package(Pack1 REQUIRED)
|
|
find_package(Pack4 4.3 EXACT REQUIRED)
|
|
find_package(Pack7 REQUIRED)
|
|
find_package(Pack8 REQUIRED)
|
|
|
|
add_executable(FindDependency main.cpp)
|
|
target_link_libraries(FindDependency Pack1::Lib Pack4::Lib Pack8::Lib)
|