-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit moves all the source code to the src/ subdirectory in preparation for adding tests in a separate subdirectory.
- Loading branch information
Showing
4 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
project(pwait) | ||
|
||
cmake_minimum_required(VERSION 2.8) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
include(CheckSymbolExists) | ||
check_symbol_exists(__GLIBC__ features.h _GNU_SOURCE) | ||
configure_file(config.h.in config.h) | ||
|
||
add_executable(pwait pwait.c) | ||
target_link_libraries(pwait cap) | ||
|
||
install(TARGETS pwait RUNTIME DESTINATION bin) | ||
install(CODE "execute_process(COMMAND setcap cap_sys_ptrace+ep pwait WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)") | ||
add_subdirectory(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
include(CheckSymbolExists) | ||
check_symbol_exists(__GLIBC__ features.h _GNU_SOURCE) | ||
configure_file(config.h.in config.h) | ||
|
||
add_executable(pwait pwait.c) | ||
target_link_libraries(pwait cap) | ||
|
||
install(TARGETS pwait RUNTIME DESTINATION bin) | ||
install(CODE "execute_process(COMMAND setcap cap_sys_ptrace+ep pwait WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)") |
File renamed without changes.
File renamed without changes.