aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/livepp/unofficial-liveppConfig.cmake
blob: d42dc254e585716419cf9cc6b3bfedcb5c46a7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if(NOT TARGET unofficial::livepp::livepp)
     get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
     get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
     get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
     if(_IMPORT_PREFIX STREQUAL "/")
          set(_IMPORT_PREFIX "")
     endif()

     add_library(unofficial::livepp::livepp INTERFACE IMPORTED)
     set_target_properties(unofficial::livepp::livepp PROPERTIES
          INTERFACE_COMPILE_DEFINITIONS VCPKG_LIVEPP_PATH="${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/tools/livepp"
          INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
     )

     unset(_IMPORT_PREFIX)
endif()