2018-02-17 13:25:30 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O m o s r a / m a g n u m - e x t r a s
2020-07-14 23:38:18 +08:00
R E F v 2 0 2 0 . 0 6
S H A 5 1 2 7 4 1 9 a f 8 4 a 6 d e 7 2 f 6 6 6 a 9 b d 1 2 a 3 2 5 c 4 b 4 0 f 9 e 2 a 2 5 f e c 3 d 0 b 2 2 c 3 4 8 f a a b 0 a 4 0 2 b 6 2 f a 7 8 2 2 3 1 b 9 b 1 2 1 8 0 d 8 4 f 4 a b 2 5 0 8 b 0 2 d f 2 5 a 9 7 7 1 3 9 4 8 b d d 2 f 2 1 c 9 e 8 c b 8 3 1 f a 2 5
2018-02-17 13:25:30 +08:00
H E A D _ R E F m a s t e r
)
2018-03-25 00:33:40 +08:00
string ( COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC )
2018-02-17 13:25:30 +08:00
2022-11-05 05:18:54 +08:00
vcpkg_check_features (
O U T _ F E A T U R E _ O P T I O N S F E A T U R E _ O P T I O N S
F E A T U R E S
u i W I T H _ U I
)
2018-02-17 13:25:30 +08:00
2022-11-05 05:18:54 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2018-02-17 13:25:30 +08:00
O P T I O N S
2022-11-05 05:18:54 +08:00
$ { F E A T U R E _ O P T I O N S }
2018-02-17 13:25:30 +08:00
- D B U I L D _ S T A T I C = $ { B U I L D _ S T A T I C }
- D M A G N U M _ P L U G I N S _ D E B U G _ D I R = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / b i n / m a g n u m - d
- D M A G N U M _ P L U G I N S _ R E L E A S E _ D I R = $ { C U R R E N T _ I N S T A L L E D _ D I R } / b i n / m a g n u m
)
2022-11-05 05:18:54 +08:00
vcpkg_cmake_install ( )
2018-02-17 13:25:30 +08:00
2022-11-05 05:18:54 +08:00
vcpkg_cmake_config_fixup ( PACKAGE_NAME MagnumExtras CONFIG_PATH share/cmake/MagnumExtras )
2018-02-24 18:27:48 +08:00
2018-02-17 13:25:30 +08:00
# Messages to the user
2022-11-05 05:18:54 +08:00
if ( WITH_UI )
2018-02-17 13:25:30 +08:00
message ( WARNING "It is recommended to install one of magnum-plugins[freetypefont,harfbuzzfont,stbtruetypefont] to have the UI library working out of the box" )
endif ( )
# Debug includes and share are the same as release
file ( REMOVE_RECURSE
2022-11-05 05:18:54 +08:00
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / i n c l u d e "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / s h a r e "
2018-03-25 00:33:40 +08:00
)
2018-02-17 13:25:30 +08:00
# Clean up empty directories
2018-03-25 00:33:40 +08:00
if ( "${FEATURES}" STREQUAL "core" )
2018-02-17 13:25:30 +08:00
file ( REMOVE_RECURSE
2022-11-05 05:18:54 +08:00
" $ { C U R R E N T _ P A C K A G E S _ D I R } / b i n "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / l i b "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g "
2018-02-24 18:27:48 +08:00
)
2018-02-17 13:25:30 +08:00
set ( VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled )
endif ( )
2018-02-24 18:27:48 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
2022-11-05 05:18:54 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" )
2018-02-17 13:25:30 +08:00
endif ( )
# Handle copyright
2022-11-05 05:18:54 +08:00
file ( INSTALL "${SOURCE_PATH}/COPYING"
D E S T I N A T I O N " $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / $ { P O R T } "
2020-07-14 23:38:18 +08:00
R E N A M E c o p y r i g h t )
2018-02-17 13:25:30 +08:00
vcpkg_copy_pdbs ( )