Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 13s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
21 lines
480 B
CMake
21 lines
480 B
CMake
cmake_minimum_required (VERSION 3.6)
|
|
project(auth_service LANGUAGES C)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
set(CMAKE_C_FLAGS "-ffunction-sections -fdata-sections")
|
|
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--gc-sections")
|
|
|
|
include_directories(./src/lib/ ${SQLite3_INCLUDE_DIRS})
|
|
|
|
FILE(GLOB_RECURSE SOURCES src/*.c)
|
|
|
|
find_package(SQLite3 REQUIRED)
|
|
|
|
add_executable(
|
|
auth_service
|
|
${SOURCES}
|
|
)
|
|
|
|
target_link_libraries(auth_service ssl crypto sqlite3 pthread)
|