Hello Djou, You will be better of asking this question on the 'cmake' mailing list itself. That is geared towards cmake users. This list is for people developing cmake itself.
Here is a cmake example to get you started: project(DEMO) cmake_minimum_required(VERSION 2.8) add_executable(demo main.cxx) If you save this to a file called CMakeLists.txt and create a build directory, you can call 'cmake <sourcedirectory>' (fill in the actual source directory) and cmake will generate a buildsystem for you (i.e. a Makefile or a visual studio project file). Then you just call 'make' in the case of a Makefile and your executable will be compiled for you. HTH, Micha On 12/12/2014 10:24 PM, djou akr wrote: > To whom it may concern > > I am trying to find how to compile in an automatic ( programmatically > ) way a c++ file without the manual way in the terminal (I am on ubuntu) > > I mean, while a c++ file is executing it will compile another c++ file > at run time. Of course this with the use of make and cmake. > > Thanks in advance > Best regards > >
signature.asc
Description: OpenPGP digital signature
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
