[cmake-developers] nvidia nsight tegra set vcxproj properties (Ant Build) in cmake file

Dmitry Polyanitsa dpolyanitsa at nvidia.com
Wed Aug 26 08:15:25 EDT 2015


Hi Peter,

Note the commit Brad mentioned in another thread:

> VS: Add more Nsight Tegra generator Android property settings

> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8c0afaf4

It adds the ability to set both Native Library Directories and Native Library Dependencies, among other things. Thanks for the link to the forum post, by the way – we forgot to update it and will do that now.

-Dmitry

From: cmake-developers [mailto:cmake-developers-bounces at cmake.org] On Behalf Of Peter List
Sent: Wednesday, August 26, 2015 5:06 AM
To: cmake-developers at cmake.org
Subject: [cmake-developers] nvidia nsight tegra set vcxproj properties (Ant Build) in cmake file

I have a working hello world cmake + built-in Android using nvidia nsight tegra.  It uses SDL2.

Unfortunately, after I run cmake I have to manually edit the following in my vcxproj to add SDL2:

Configuration Properties > Ant Build > Native Library Directories, Native Library Dependencies

I found this post ( http://bit.ly/1NTgTE3 ) from May 5th (3 months 20 days ago) describing the same issue.  Is there an ETA on this?

Since this isn't out yet, is there a work-around I can do instead?  So far my best idea is to have cmake use add_custom_command() as a post-build step to call a python script that edits the vcxproj file XML.

    <AntBuild>
      <AntBuildPath>[path]\build-android\android-project</AntBuildPath>
      <AndroidManifestLocation>[path]\build-android\android-project\AndroidManifest.xml</AndroidManifestLocation>
      <NativeLibDirectories>../../../SDL2-2.0.3/libs/armeabi-v7a</NativeLibDirectories>
      <NativeLibDependencies>SDL2</NativeLibDependencies>
    </AntBuild>

thank you


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150826/bf11c308/attachment.html>


More information about the cmake-developers mailing list