I have three programs, for example: program_1.cpp, program_2.cpp and program_3.cpp.
As of now, I have separate makefiles to build these programs.
I would like to implement in this in the below manner.
cmake "program_1" # program_1.cpp has to compile cmake "program_2" # program_2.cpp has to compile cmake "program_3" # program_3.cpp has to compile Could you suggest me the ways to achieve this?
[UPDATE]:
I am using a shell script in order to compile the program. For example
bash build_script.sh build This would compile the file program_1.cpp and generates the executables.
In the same manner, I would like to implement the below approach.
bash build_script.sh build program_1 -- build program_1.cpp bash build_script.sh build program_2 -- build program_2.cpp bash build_script.sh build program_3 -- build program_3.cpp