14 lines
301 B
CMake
14 lines
301 B
CMake
PROJECT ( example )
|
|
|
|
cmake_minimum_required( VERSION 3.16 )
|
|
|
|
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} )
|
|
|