mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
31 lines
720 B
CMake
31 lines
720 B
CMake
include(CheckSymbolExists)
|
|
include(CheckIncludeFiles)
|
|
|
|
# Linux
|
|
check_symbol_exists(PR_SET_DUMPABLE "sys/prctl.h" HAVE_PR_SET_DUMPABLE)
|
|
add_feature_info("pr_set_dumpable" HAVE_PR_SET_DUMPABLE "Used to disallow process tracing")
|
|
|
|
# FreeBSD
|
|
check_symbol_exists(procctl "sys/procctl.h" HAVE_PROCCTL)
|
|
add_feature_info("procctl" HAVE_PROCCTL "Used to disallow process tracing")
|
|
|
|
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=900)
|
|
|
|
set(KDESUDO_SRC
|
|
main.cpp
|
|
kdesudo.cpp
|
|
kcookie.cpp
|
|
)
|
|
|
|
add_executable(kdesudo ${KDESUDO_SRC})
|
|
|
|
target_link_libraries(kdesudo
|
|
${KDE4_KDEUI_LIBS}
|
|
)
|
|
|
|
install(
|
|
TARGETS kdesudo
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
)
|