51 lines
1.0 KiB
CMake
51 lines
1.0 KiB
CMake
cmake_minimum_required(VERSION 3.30)
|
|
project(leetcode C)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
include_directories(include)
|
|
|
|
add_compile_options(
|
|
-Wall
|
|
-Wextra
|
|
-O0
|
|
-g3
|
|
-fsanitize=address
|
|
-fsanitize=undefined
|
|
-fno-omit-frame-pointer
|
|
)
|
|
|
|
add_link_options(
|
|
-fsanitize=address
|
|
-fsanitize=undefined
|
|
)
|
|
|
|
add_executable(13 13.c)
|
|
add_executable(88 88.c)
|
|
add_executable(100 100.c)
|
|
add_executable(101 101.c)
|
|
add_executable(104 104.c)
|
|
add_executable(108 108.c)
|
|
add_executable(110 110.c)
|
|
add_executable(111 111.c)
|
|
add_executable(112 112.c)
|
|
add_executable(136 136.c)
|
|
add_executable(141 141.c)
|
|
add_executable(144 144.c)
|
|
add_executable(145 145.c)
|
|
add_executable(160 160.c)
|
|
add_executable(169 169.c)
|
|
add_executable(190 190.c)
|
|
add_executable(191 191.c)
|
|
add_executable(202 202.c)
|
|
add_executable(225 225.c)
|
|
add_executable(228 228.c)
|
|
add_executable(231 231.c)
|
|
add_executable(263 263.c)
|
|
add_executable(268 268.c)
|
|
add_executable(278 278.c)
|
|
add_executable(374 374.c)
|
|
add_executable(2786 2786.c)
|
|
|