configure with cmake

This commit is contained in:
lakinduakash 2019-03-05 02:38:38 +05:30
parent 3489eec5dd
commit 8aa147af10

16
src/CMakeLists.txt Normal file
View File

@ -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})