zdoom-macos-deps/patch/quasi-glib/CMakeLists.txt

13 lines
501 B
Text
Raw Normal View History

2022-12-31 08:46:59 +00:00
cmake_minimum_required(VERSION 3.1)
project(quasi-glib)
add_library(quasi-glib quasi-glib.cpp)
set_property(TARGET quasi-glib PROPERTY CXX_STANDARD 17)
2022-12-31 08:46:59 +00:00
install(TARGETS quasi-glib)
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)