20 lines
441 B
CMake
20 lines
441 B
CMake
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)
|