-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- find_package(ozo) will now resolve dependencies on it's own - fixed include path when ozo is externally resolved - moved installed tareget to yandex:: namespace - vendored FindPostgreSQL of CMake 3.14 - added regression test to ensure ozo can be used from external projects
- Loading branch information
1 parent
6b3ed0b
commit 4ae2a4d
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
include(CMakeFindDependencyMacro) | ||
|
||
# Find PostgreSQL using new provided script | ||
# Remove this once we move to CMake 3.14+ | ||
set(CMAKE_MODULE_PATH_old_ ${CMAKE_MODULE_PATH}) | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}") | ||
find_dependency(PostgreSQL) | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH_old_}) | ||
|
||
find_dependency(Boost COMPONENTS coroutine context system thread atomic) | ||
find_dependency(resource_pool) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/ozo-targets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
project(my_ozo_using_project) | ||
|
||
find_package(ozo REQUIRED) | ||
add_executable(my_app ../../examples/request.cpp) | ||
target_link_libraries(my_app PRIVATE yandex::ozo) |