mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
72e7c45e98
Since 3.19, CMake generates a deprecation warning when using a minimum version less than 2.8.12. This eliminates those warnings generated during tests, which are typically hidden from the user and developer but are being generated nonetheless.
11 lines
221 B
CMake
11 lines
221 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(gmodule C)
|
|
|
|
find_package(GTK2 COMPONENTS gtk REQUIRED)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
add_executable(gmodule WIN32 main.c)
|
|
target_link_libraries(gmodule GTK2::gmodule)
|