2022-12-31 08:46:59 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
project(quasi-glib)
|
|
|
|
add_library(quasi-glib quasi-glib.cpp)
|
2023-02-23 13:15:52 +00:00
|
|
|
set_property(TARGET quasi-glib PROPERTY CXX_STANDARD 17)
|
2022-12-31 08:46:59 +00:00
|
|
|
install(TARGETS quasi-glib)
|
2023-02-23 13:15:52 +00:00
|
|
|
|
|
|
|
add_executable(quasi-glib-test quasi-glib-test.cpp)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
|
|
|
set_property(TARGET quasi-glib-test PROPERTY CXX_STANDARD 17)
|
|
|
|
target_include_directories(quasi-glib-test PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(quasi-glib-test PRIVATE quasi-glib)
|