Skip to content

Commit

Permalink
Test ncurses port against CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Apr 12, 2021
1 parent 5b670e1 commit 8e0c648
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/test_ports/cmake/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ vcpkg_from_gitlab(
HEAD_REF master
)

if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP)
set(BUILD_CURSES_DIALOG ON)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand All @@ -26,6 +30,7 @@ vcpkg_configure_cmake(
-DCMAKE_USE_SYSTEM_JSONCPP=ON
-DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG
-DCMAKE_USE_SYSTEM_LIBUV=ON
-DBUILD_CursesDialog=${BUILD_CURSES_DIALOG}
-DBUILD_QtDialog=ON # Just to test Qt with CMake
)

Expand All @@ -37,6 +42,9 @@ if(NOT VCPKG_TARGET_IS_OSX)
if(VCPKG_TARGET_IS_WINDOWS)
list(APPEND _tools cmcldeps)
endif()
if(BUILD_CURSES_DIALOG)
list(APPEND _tools ccmake)
endif()
vcpkg_copy_tools(TOOL_NAMES ${_tools} AUTO_CLEAN)
else()
# On OSX everything is within a CMake.app folder
Expand Down
4 changes: 4 additions & 0 deletions scripts/test_ports/cmake/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"libarchive",
"liblzma",
"libuv",
{
"name": "ncurses",
"platform": "!(windows | uwp)"
},
"nghttp2",
"qt5-base",
{
Expand Down

0 comments on commit 8e0c648

Please sign in to comment.