if (MSVC)
# warning level 4 and all warnings as errors
add_compile_options(/W4 /WX)
else()
# lots of warnings and all warnings as errors
add_compile_options(-Wall -Wextra -pedantic -Werror)
endif()
target_compile_features(mylib PRIVATE cxx_constexpr)
target_compile_features(mylib PUBLIC cxx_std_11)
find_package(PkgConfig)
pkg_check_modules(GTKMM3 REQUIRED gtkmm-3.0)
add_executable(app main.cpp)
target_include_directories(app PRIVATE ${GTKMM3_INCLUDE_DIRS})
target_link_libraries(app ${GTKMM3_LIBRARIES})
target_link_options(app PRIVATE -fsanitize=address)