From 0814549073252168aadee01b16fb604d00a98891 Mon Sep 17 00:00:00 2001 From: Gregory Tertyshny Date: Sat, 25 Mar 2017 21:16:12 +0200 Subject: [PATCH] cmake --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d1c8a76 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.6) +project(ft_ls) + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra") + +include_directories(inc libft/includes) # headers +link_directories(libft) # libraries + +set(SOURCE_FILES + src/main.c + ) # sources + +add_executable(ft_ls ${SOURCE_FILES}) # compilation + +target_link_libraries(ft_ls -lft) # linkage