2023-02-18 21:24:31 +03:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
2023-02-18 20:06:27 +03:00
|
|
|
|
|
|
|
project(MirCompositor)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
|
2023-02-18 21:10:42 +03:00
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(MIRAL miral REQUIRED)
|
2023-02-18 20:06:27 +03:00
|
|
|
find_package(OpenGL REQUIRED)
|
2023-02-18 21:10:42 +03:00
|
|
|
|
2023-02-18 20:06:27 +03:00
|
|
|
add_executable(compositor src/main.cpp)
|