PROJECT ( example ) cmake_minimum_required( VERSION 3.16 ) #add_compile_options(-DMAC) FIND_PACKAGE ( PkgConfig REQUIRED ) PKG_CHECK_MODULES( GTK REQUIRED gtkmm-3.0) INCLUDE_DIRECTORIES ( ${GTK_INCLUDE_DIRS} ) ADD_EXECUTABLE ( example main.cpp ) TARGET_LINK_LIBRARIES( example ${CMAKE_THREAD_LIBS_INIT} ${GTK_LIBRARIES} )