Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install for use in VS project? #14

Open
JTD420 opened this issue May 29, 2022 · 5 comments
Open

How to install for use in VS project? #14

JTD420 opened this issue May 29, 2022 · 5 comments

Comments

@JTD420
Copy link

JTD420 commented May 29, 2022

I have a VS C++ project that auto updates my project by downloading the latest zip file from URL. I would like to extract it to a directory I have already created on the users machine.

How do I install and use this within my project? I am a bit confused and don't want to mess anything up

@JTD420
Copy link
Author

JTD420 commented May 29, 2022

Using Windows as my OS

@Sygmei
Copy link
Owner

Sygmei commented May 30, 2022

Usually, you would use a CMakelists.txt to generate your Visual Studio project
11Zip includes a library CMakelists that you can include using the add_subdirectory CMake command

What do you usually use for dependencies in Visual Studio ?

@Sygmei
Copy link
Owner

Sygmei commented May 30, 2022

If you don't want to use CMake, you should be able to create a subproject in Visual Studio, add the 11Zip source files in it, add the proper include path in your main project and you should be good to go.

@XavierBerger
Copy link
Contributor

I use this lib as follow (with fetch content on my fork to get benefice of pull request just proposed):

include(FetchContent)
FetchContent_Declare(
  Zip
  GIT_REPOSITORY https://github.com/XavierBerger/11Zip.git
  GIT_TAG master
)
FetchContent_MakeAvailable(Zip)

@Sygmei
Copy link
Owner

Sygmei commented Mar 18, 2023

Not familiar with FetchContent but you should be able to do a target_link_libraries after the fetch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants