mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 12:01:27 +00:00
40ce7088f4
use c++ 17 for library and test
12 lines
501 B
CMake
12 lines
501 B
CMake
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)
|
|
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)
|