megapixels/CMakeLists.txt

20 lines
615 B
CMake
Raw Permalink Normal View History

2020-01-23 17:15:28 +00:00
cmake_minimum_required(VERSION 3.14)
2020-09-02 23:48:47 +00:00
project(Megapixels C)
2020-01-23 17:15:28 +00:00
set(CMAKE_C_STANDARD 11)
# Use the package PkgConfig to detect GTK+ headers/library files
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0)
# Setup CMake to use GTK+, tell the compiler where to look for headers
# and to the linker where to look for libraries
INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS})
LINK_DIRECTORIES(${GTK3_LIBRARY_DIRS})
# Add other flags to the compiler
ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER})
2020-09-02 23:48:47 +00:00
add_executable(megapixels main.c ini.c ini.h bayer.c bayer.h)
target_link_libraries(megapixels ${GTK3_LIBRARIES})