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

[Work in Progress] Enable CMake build on Windows #1011

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

Conversation

lalitb
Copy link
Contributor

@lalitb lalitb commented Apr 12, 2022

Work in progress.

@lalitb lalitb marked this pull request as draft April 12, 2022 13:24
@@ -295,7 +322,7 @@ endif()
# Packaging
################################################################################################

if (BUILD_PACKAGE)
if (BUILD_PACKAGE AND (NOT WIN32))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit: what is the reason to check for NOT WIN32 - was it failing something if you don't add it? I wonder if we could eventually add logic in here under the if (BUILD_PACKAGE) to produce a package, e.g. nuget or alike, even if we build on Windows. My selfish interest - is we'd likely need this CMake flow for our organization telemetry.

@ghost
Copy link

ghost commented Apr 29, 2022

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ lalitb sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@sid-dahiya sid-dahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also try to get Apple to consume vcpkgs as well, especially gtest/gmock. That can be a follow-up.

${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/googletest/include
${CMAKE_CURRENT_SOURCE_DIR}/../third_party/googletest/googlemock/include
)
message("-->Lalit tests")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?


PS C:\cpp_client_telemetry\build> cmake --build .

This should build the 1DS C++ library, along with the functional and unit tests in `build` folder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add instructions on how to add it to another projects CMake as well? Like add_directory(<path to cpp_client_telemetry>)?

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

Successfully merging this pull request may close these issues.

None yet

4 participants