You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
cmake_minimum_required(VERSION 3.7)
|
|
project(ubl-settings-diskquota)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(GTK REQUIRED gtkmm-3.0)
|
|
include_directories(${GTK_INCLUDE_DIRS})
|
|
link_directories(${GTK_LIBRARY_DIRS})
|
|
add_definitions(${GTK_CFLAGS_OTHER})
|
|
|
|
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -std=c++2a")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \
|
|
-O2 -pipe -fno-plt -fexceptions \
|
|
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
|
|
-fstack-clash-protection -fcf-protection -g")
|
|
|
|
set(SOURCE_FILES
|
|
ubl-settings-diskquota.h
|
|
ubl-settings-diskquota.cc
|
|
system_cmd_quotas.cc
|
|
system_cmd_quotas.h
|
|
controler.h
|
|
global_var.h
|
|
controler.cc
|
|
my_device.h
|
|
my_device.cc
|
|
project_lib.h
|
|
my_type.h
|
|
save.h
|
|
save.cc
|
|
load.h
|
|
load.cc
|
|
my_process.h
|
|
my_process.cc
|
|
util.h
|
|
util.cc
|
|
my_plug.h
|
|
my_plug.cc
|
|
ubl-util-standard.h
|
|
ubl-util-standard.c
|
|
main.cc)
|
|
|
|
set(LIBRARIES
|
|
${GTK_LIBRARIES}
|
|
pthread)
|
|
|
|
add_executable(ubl-settings-diskquota ${SOURCE_FILES})
|
|
target_link_libraries(ubl-settings-diskquota ${LIBRARIES} ${ICU_LIBRARIES})
|
|
install(TARGETS ubl-settings-diskquota DESTINATION bin) |