S
S
sounddiibo2022-01-30 16:18:50
linux
sounddiibo, 2022-01-30 16:18:50

How to build an executable file for Linux?

I need to build a Linux executable. the project itself consists of two files, these are:
CMakeLists.txt and main.cpp
I would like to know how I can build the finished file through gcc, if the cpr.h library is included in CMakeLists.txt

gcc -o file -c main.cpp -c CMakeLists.txt or something like that...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Turnaviotov, 2022-02-02
@foxmuldercp

call:
1. cmake - the Makefile generator
2. make - the assembly itself according to the created Makefile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question