2025-04-02 11:05:25 -04:00
2025-02-25 09:47:28 -05:00
2025-04-02 11:05:25 -04:00
2025-04-02 11:05:25 -04:00
2025-02-18 10:33:58 -05:00
2025-02-18 10:33:58 -05:00
2025-02-18 10:33:58 -05:00
2025-04-02 11:05:25 -04:00
2025-02-18 10:33:58 -05:00

ft_ping

This is a template C project using CMake (v3.27) and Make.

To add C files, simply add the relative path from the root of the project to the C_SRCS variable in makefile, seperated by a space

Example:

C_SRCS = srcs/main.c srcs/file.c srcs/other_file.c srcs/one/two/three/directory.c

To add C Header files, you must add the directory to the INCLUDE_DIRS and the relative path from the root of the project of the Header file to the INCLUDE_SRCS variable in the makefile, they must be seperated by spaces.

Example:

INCLUDE_DIRS = includes otherpath/includes
INCLUDE_SRCS = includes/main.h otherpath/includes/file.h

To add compilation flags, just add them to the CFLAGS Makefile variable, they must be seperated by spaces.

Example:

CFLAGS = -Wall -Werror -Wextra

To add project libraries, simply place them in a directory located in the root directory with the same name as the library. Then just add them to the CFLAGS Makefile variable, they must be seperated by spaces.

Example:

SUBDIRECTORIES = mycoollib openssl

You can change CMake Specific variables in the Makefile, such as Number of Workers, Build Directory, Install Directory, Generator Type and the Release Type.

To build simply run make

Description
No description provided
Readme 130 KiB
Languages
C 84.4%
CMake 8.8%
Makefile 6.8%