You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
369 B
15 lines
369 B
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(gtk C)
|
|
|
|
find_package(GTK2 COMPONENTS gtk REQUIRED)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
add_executable(gtk WIN32 main.c)
|
|
target_link_libraries(gtk GTK2::gtk)
|
|
|
|
add_executable(gtk-all-libs WIN32 main.c)
|
|
target_link_libraries(gtk-all-libs ${GTK2_LIBRARIES})
|
|
target_include_directories(gtk-all-libs PRIVATE ${GTK2_INCLUDE_DIRS})
|