jay/CMakeLists.txt

20 lines
441 B
CMake
Raw Normal View History

2024-03-31 01:44:52 +00:00
cmake_minimum_required(VERSION 3.10)
project(jay
VERSION 0.0.1
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find gloox library
find_package(PkgConfig)
pkg_search_module(GLOOX REQUIRED gloox)
add_executable(jay main.cpp jay.cpp logger.cpp)
target_include_directories(jay PRIVATE ${GLOOX_INCLUDE_DIRS})
target_link_libraries(jay ${GLOOX_LIBRARIES})
install(TARGETS jay RUNTIME DESTINATION bin)