Initial commit
This commit is contained in:
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(GTKCamera C)
|
||||
|
||||
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})
|
||||
|
||||
add_executable(GTKCamera main.c)
|
||||
target_link_libraries(GTKCamera ${GTK3_LIBRARIES})
|
Reference in New Issue
Block a user