19 lines
366 B
CMake
19 lines
366 B
CMake
cmake_minimum_required (VERSION 3.6)
|
|
project(fmongoose LANGUAGES C)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
include_directories(./src/lib/ ${SQLite3_INCLUDE_DIRS})
|
|
|
|
FILE(GLOB_RECURSE SOURCES src/*.c)
|
|
|
|
find_package(SQLite3 REQUIRED)
|
|
|
|
add_executable(
|
|
fmongoose
|
|
${SOURCES}
|
|
)
|
|
|
|
target_link_libraries(fmongoose ssl crypto sqlite3 pthread)
|