mirror of
https://gitlab.com/niansa/discord_llama.git
synced 2025-03-06 20:48:25 +01:00
26 lines
742 B
CMake
26 lines
742 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(discord_llama LANGUAGES C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined,memory")
|
|
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined,memory")
|
|
|
|
set(ANYPROC_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
set(LM_NOEXCEPT ON CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(libjustlm)
|
|
add_subdirectory(cosched2)
|
|
add_subdirectory(DPP)
|
|
add_subdirectory(fmt)
|
|
|
|
add_executable(discord_llama
|
|
main.cpp
|
|
config.hpp config.cpp
|
|
utils.cpp utils.hpp
|
|
)
|
|
target_link_libraries(discord_llama PUBLIC dpp fmt pthread justlm cosched2 sqlite3)
|
|
|
|
install(TARGETS discord_llama
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|