Added vcpkg.

This commit is contained in:
Arron David Nelson 2024-09-29 21:06:30 -07:00
parent 9bd3e1cd8d
commit d870599a60
3 changed files with 9 additions and 5 deletions

View File

@ -19,6 +19,7 @@ jobs:
- name: Building/Compiling/Installing Project - name: Building/Compiling/Installing Project
run: | run: |
cd ${{ gitea.workspace }} cd ${{ gitea.workspace }}
vcpkg install
cmake -A x64 -DCMAKE_BUILD_TYPE=Release . cmake -A x64 -DCMAKE_BUILD_TYPE=Release .
cd build cd build
cmake --build . --config Release cmake --build . --config Release

View File

@ -259,11 +259,6 @@ if (IS_OS_LINUX)
target_include_directories(EHS_Stc PRIVATE ${PIPEWIRE_INCLUDE_DIRS}) target_include_directories(EHS_Stc PRIVATE ${PIPEWIRE_INCLUDE_DIRS})
target_include_directories(EHS_Dyn PRIVATE ${PIPEWIRE_INCLUDE_DIRS}) target_include_directories(EHS_Dyn PRIVATE ${PIPEWIRE_INCLUDE_DIRS})
elseif (IS_OS_WINDOWS) elseif (IS_OS_WINDOWS)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "Vcpkg toolchain file")
endif()
set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/EHS") set(CMAKE_INSTALL_PREFIX "${USER_HOME_DIRECTORY}/EHS")
install(TARGETS EHS_Dyn LIBRARY DESTINATION "lib") install(TARGETS EHS_Dyn LIBRARY DESTINATION "lib")
install(TARGETS EHS_Dyn RUNTIME DESTINATION "bin") install(TARGETS EHS_Dyn RUNTIME DESTINATION "bin")

8
vcpkg.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "EHS",
"version": "1.0",
"dependencies": [
"zlib",
"openssl"
]
}