Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 5s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 11s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 9s
17 lines
345 B
CMake
17 lines
345 B
CMake
cmake_minimum_required (VERSION 3.6)
|
|
project(sudo LANGUAGES C)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
# include_directories(./src/libs/)
|
|
FILE(GLOB_RECURSE SOURCES src/*.c)
|
|
|
|
# find_package(package-name REQUIRED)
|
|
|
|
add_executable(
|
|
sudo
|
|
${SOURCES}
|
|
)
|
|
# target_link_libraries(project_name package-name::package-name)
|