Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:35:18+00:00 2026-05-26T22:35:18+00:00

Basically I want to achieve this workflow: Checkout from repository on windows system (or

  • 0

Basically I want to achieve this workflow:

  1. Checkout from repository on windows system (or any platform for that matter).

  2. Run some tool that gets dependencies, both includes and libs and puts them in their proper place (like in “\Program Files\Microsoft Visual Studio 10.0\VC\Lib and \Includes” on windows)

  3. Run CMake (creates MSVS projects on win)

  4. Open up MSVS project and compile it.

And i would like to have this workflow on most platforms.

I dont want to have to download dependencies manually

How to do this without storing dependencies in repository?
What is the best way to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:35:19+00:00Added an answer on May 26, 2026 at 10:35 pm

    In CMake you can use file(DOWNLOAD URL PATH) to download a file, combine this with custom commands to download and unpack:

    set(MY_URL "http://...")
    set(MY_DOWNLOAD_PATH "path/to/download/to")
    set(MY_EXTRACTED_FILE "path/to/extracted/file")
    
    if (NOT EXISTS "${MY_DOWNLOAD_PATH}")
        file(DOWNLOAD "${MY_URL}" "${MY_DOWNLOAD_PATH}")
    endif()
    
    add_custom_command(
        OUTPUT "${MY_EXTRACTED_FILE}"
        COMMAND command to unpack
        DEPENDS "${MY_DOWNLOAD_PATH}")
    

    Your target should depend on the output from the custom command, then when you run CMake the file will be downloaded, and when you build, extracted and used.

    This could all be wrapped up in a macro to make it easier to use.

    You could also look at using the CMake module ExternalProject which may do what you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I achieve this? Basically I have first a view controller that lists
I just can't figure a way to achieve this. I basically want to get
Basically, I want to achieve the same thing as ON DUPLICATE KEY in MySQL.
I basically want to do this: grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log ...with of course
I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not
What i basically want to do is to get content from a website and
Basically I want to be able to invoke a given command, in this case
I wonder how to achieve this in Flex. Basically, I have enabled Drag and
Basically I want to extract the absolute path from a node to root and
Okay so basically I am creating a Workflow BPMS in SharePoint and I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.