From 8aa147af10a9c8c0ad91251ab8b1284f29a92ca7 Mon Sep 17 00:00:00 2001 From: lakinduakash Date: Tue, 5 Mar 2019 02:38:38 +0530 Subject: [PATCH] configure with cmake --- src/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/CMakeLists.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..046280a --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.12) +project(wihotspot C) + +include(FindPkgConfig) +pkg_check_modules(GTK gtk+-3.0 REQUIRED) +include_directories(${GTK_INCLUDE_DIRS}) + +set(CMAKE_C_STANDARD 99) + +add_executable(wihotspot ui/main.c) + +target_link_libraries(${PROJECT_NAME} ${GTK_LIBRARIES}) + +include_directories(/usr/include) + +file(COPY ui/glade DESTINATION ${CMAKE_BINARY_DIR}) \ No newline at end of file