# # hello/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(HELLO C) include(FindPkgConfig) pkg_check_modules(GLIB2 glib-2.0) add_definitions(${GLIB2_CFLAGS}) add_executable(gsh gsh.c) target_link_libraries(gsh ${GLIB2_LDFLAGS}) if(CMAKE_COMPILER_IS_GNUCC) add_definitions(--std=c99 -Wall) endif()