diff options
Diffstat (limited to 'vcpkg/ports/pdcurses/unofficial-pdcurses-config.cmake')
| -rw-r--r-- | vcpkg/ports/pdcurses/unofficial-pdcurses-config.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/pdcurses/unofficial-pdcurses-config.cmake b/vcpkg/ports/pdcurses/unofficial-pdcurses-config.cmake new file mode 100644 index 0000000..804e29e --- /dev/null +++ b/vcpkg/ports/pdcurses/unofficial-pdcurses-config.cmake @@ -0,0 +1,24 @@ +if(NOT TARGET unofficial::pdcurses::pdcurses)
+ add_library(unofficial::pdcurses::pdcurses UNKNOWN IMPORTED)
+ get_filename_component(z_vcpkg_pdcurses_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ get_filename_component(z_vcpkg_pdcurses_root "${z_vcpkg_pdcurses_root}" PATH)
+ get_filename_component(z_vcpkg_pdcurses_root "${z_vcpkg_pdcurses_root}" PATH)
+
+ set_target_properties(unofficial::pdcurses::pdcurses PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${z_vcpkg_pdcurses_root}/include"
+ )
+
+ find_library(Z_VCPKG_PDCURSES_LIBRARY_RELEASE NAMES pdcurses PATHS "${z_vcpkg_pdcurses_root}/lib" NO_DEFAULT_PATH)
+ if(EXISTS "${Z_VCPKG_PDCURSES_LIBRARY_RELEASE}")
+ set_property(TARGET unofficial::pdcurses::pdcurses APPEND PROPERTY IMPORTED_CONFIGURATIONS "Release")
+ set_target_properties(unofficial::pdcurses::pdcurses PROPERTIES IMPORTED_LOCATION_RELEASE "${Z_VCPKG_PDCURSES_LIBRARY_RELEASE}")
+ endif()
+
+ find_library(Z_VCPKG_PDCURSES_LIBRARY_DEBUG NAMES pdcurses PATHS "${z_vcpkg_pdcurses_root}/debug/lib" NO_DEFAULT_PATH)
+ if(EXISTS "${Z_VCPKG_PDCURSES_LIBRARY_DEBUG}")
+ set_property(TARGET unofficial::pdcurses::pdcurses APPEND PROPERTY IMPORTED_CONFIGURATIONS "Debug")
+ set_target_properties(unofficial::pdcurses::pdcurses PROPERTIES IMPORTED_LOCATION_DEBUG "${Z_VCPKG_PDCURSES_LIBRARY_DEBUG}")
+ endif()
+
+ unset(z_vcpkg_pdcurses_root)
+endif()
|