-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 983 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.9)
project(01_C_Libraries_libft C)
set(CMAKE_C_STANDARD 99)
#########################################################
# I wrote this part to make Intellisense work properly. #
# (CLion is a fully CMake dependant IDE). #
#########################################################
# Bring the headers into the project
include_directories(inc)
# Bring the sources
file(GLOB SOURCES
"src/basics/chars/*/*.c"
"src/basics/maths/*.c"
"src/basics/memory/*/*.c"
"src/basics/numbers/*/*.c"
"src/basics/numbers/output/*/*.c"
"src/basics/strings/*/*.c"
"src/containers/*/*.c"
"src/utils/*/*.c"
"inc/libft/basics/*.h"
"inc/libft/containers/*.h"
"inc/libft/utils/*.h")
# Generate the static library from the sources
add_library(01_C_Libraries_libft STATIC ${SOURCES})
# I run my make commands with the plugin
# https://victor.kropp.name/projects/makefile/