CMake/Tests/Module/FindDependency/CMakeLists.txt

12 lines
294 B
CMake
Raw Normal View History

2014-02-27 00:30:18 +04:00
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)
2014-02-27 00:30:18 +04:00
add_executable(FindDependency main.cpp)
target_link_libraries(FindDependency Pack1::Lib Pack4::Lib)