-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 1.39 KB
/
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
# **************************************************************************** #
# #
# ::: :::::::: #
# CMakeLists.txt :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abelov <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/10/23 22:50:54 by abelov #+# #+# #
# Updated: 2023/10/23 22:50:57 by abelov ### ########.fr #
# #
# **************************************************************************** #
cmake_minimum_required(VERSION 3.8.2)
project("bsq" VERSION 0.1.0 LANGUAGES C ASM)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_REQUIRED_LIBRARIES "-lbsd")
set(TARGET_NAME bsq)
set(TARGET_CFLAGS
-g
-Wall -Wextra -Werror)
set(TARGET_LINK_FLAGS -w -W)
# Create an executable
file(GLOB HEADERS "include/*.h")
file(GLOB SOURCES "src/*.c")
add_executable(${TARGET_NAME} ${HEADERS} ${SOURCES})
target_compile_options(${TARGET_NAME} PRIVATE ${TARGET_CFLAGS})
target_link_options(${TARGET_NAME} PRIVATE ${TARGET_LINK_FLAGS})