[CMake] local and system installs that include python and shell scripts

Ateljevich, Eli eli at water.ca.gov
Fri Jun 22 17:29:35 EDT 2012


Hi again,
My project is set up so that the compiled targets naturally get output to a structure that looks like a "development mode" installation:
/myproj
   /build
      /bin
      /lib
      /include

This is convenient for some users ... it is the sort of code people tinker with, and I think a lot of my users will actually want to keep it local. I will offer a more typical install as well.

In addition, I have some python and shell scripts mixed in with my source code in subdirectories. These don't naturally get moved anywhere during the build and I would like to do so to complete the "development installation" idea:
/myproj
   /build
      /bin
      /lib
      /include
      /scripts
         something.sh
         /pylib
             scripts and python shared libraries


How is this best done? Should I treat this as a case of "install"? In that case when development mode is on I would install to the local directory. Strangely, for 90% of the project the source and destination will be the same - which is what makes it seem weird. Or should I just use "command" with cmake -E style copying locally and only use install for the system install?

It may be that either will work, but it seems from my last post or two that I don't always see the usual idioms and it could be neither of my guesses is a good one.

Thanks,
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120622/3fb10f1b/attachment.htm>


More information about the CMake mailing list