2

I have a project that uses cmake to be configured and compiled, but this project depends on an external source tree that uses the traditional configure / make / make install procedure. Is it possible to tell cmake that, before compiling the main project, configure (with some specific parameters), make and make install on the external source tree should be called first?

Thanks

sunmat
  • 6,976
  • 3
  • 28
  • 44
  • 6
    You're most probably looking for http://cmake.org/cmake/help/v2.8.11/cmake.html#module:ExternalProject – mike.dld Feb 22 '14 at 21:03
  • 2
    @mike.dld Would you mind to add your comment as an answers? This way sumat can accept the answer. Thanks – usr1234567 Apr 19 '14 at 08:14

1 Answers1

1

I had the exact same question when coming across this one.

(In my case, wanting to properly add libncurses and libcaca, which are both Autoconf based, as dependecies (and git submodules), to my CMake based project.)

So just to have an answer set to the question, based off of mike.did's comment ;

CMake's ExternalProject module definitely seems to be the proper solution.

(also see:)

DhP
  • 306
  • 1
  • 11