cmake_minimum_required(VERSION 3.5) project(glibmm CXX) find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED) set(CMAKE_INCLUDE_CURRENT_DIR ON) add_executable(glibmm WIN32 main.cpp) target_link_libraries(glibmm GTK2::glibmm)