Prepare values for CMakeLists.txt
This commit is contained in:
parent
d8788782a8
commit
2e91ac17fd
24
.gitignore
vendored
24
.gitignore
vendored
@ -1,6 +1,30 @@
|
|||||||
# C++ generated headers
|
# C++ generated headers
|
||||||
*.gch
|
*.gch
|
||||||
|
.out
|
||||||
|
|
||||||
|
# Generated library
|
||||||
|
comfortable-swipe
|
||||||
|
libcomfortableswipe.a
|
||||||
|
|
||||||
# IDE-specific
|
# IDE-specific
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
CMakeLists.txt.user
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles
|
||||||
|
CMakeScripts
|
||||||
|
Testing
|
||||||
|
Makefile
|
||||||
|
cmake_install.cmake
|
||||||
|
install_manifest.txt
|
||||||
|
compile_commands.json
|
||||||
|
CTestTestfile.cmake
|
||||||
|
_deps
|
||||||
|
|
||||||
|
# CPack
|
||||||
|
CPack*
|
||||||
|
|
||||||
|
# Library
|
||||||
|
.lib
|
||||||
|
|||||||
44
CMakeLists.txt
Normal file
44
CMakeLists.txt
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.10.2)
|
||||||
|
# find external libraries here
|
||||||
|
FIND_LIBRARY(XDO_LIB libxdo)
|
||||||
|
|
||||||
|
# set comfortable swipe version
|
||||||
|
FILE(STRINGS "VERSION" VERSION)
|
||||||
|
ADD_DEFINITIONS(-DCOMFORTABLE_SWIPE_VERSION="${VERSION}")
|
||||||
|
|
||||||
|
# set project
|
||||||
|
PROJECT (comfortable-swipe)
|
||||||
|
|
||||||
|
# add our own library
|
||||||
|
ADD_LIBRARY(comfortableswipe STATIC comfortable_swipe/lib.cpp)
|
||||||
|
|
||||||
|
# set our target library output
|
||||||
|
#SET_TARGET_PROPERTIES(comfortableswipe
|
||||||
|
# PROPERTIES
|
||||||
|
# LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/out/library
|
||||||
|
#)
|
||||||
|
|
||||||
|
# set our library includes
|
||||||
|
TARGET_INCLUDE_DIRECTORIES(comfortableswipe
|
||||||
|
PUBLIC
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/comfortable_swipe"
|
||||||
|
)
|
||||||
|
|
||||||
|
# add comfortable-swipe command line program
|
||||||
|
ADD_EXECUTABLE(comfortable-swipe command_line.cpp)
|
||||||
|
|
||||||
|
# link target libraries for program
|
||||||
|
TARGET_LINK_LIBRARIES(comfortable-swipe comfortableswipe)
|
||||||
|
TARGET_LINK_LIBRARIES(comfortable-swipe "${XDO_LIB}")
|
||||||
|
|
||||||
|
INSTALL(TARGETS comfortable-swipe
|
||||||
|
COMPONENT linapp
|
||||||
|
RUNTIME DESTINATION "/home/rico/cf/run"
|
||||||
|
LIBRARY DESTINATION "/home/rico/cf/run"
|
||||||
|
DESTINATION "/home/rico/cf/run"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
SET(CPACK_GENERATOR "DEB")
|
||||||
|
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "KK") #required
|
||||||
|
INCLUDE(CPack)
|
||||||
@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "comfortable_swipe/lib"
|
#include "comfortable_swipe/lib.cpp"
|
||||||
#include <ios> // std::ios
|
#include <ios> // std::ios
|
||||||
#include <iostream> // std::cin, std::cout, std::cerr
|
#include <iostream> // std::cin, std::cout, std::cerr
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
|
|||||||
9
data/comfortable-swipe.desktop
Normal file
9
data/comfortable-swipe.desktop
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Exec=comfortable-swipe start
|
||||||
|
Hidden=false
|
||||||
|
NoDisplay=false
|
||||||
|
X-GNOME-Autostart-enabled=true
|
||||||
|
Name=Comfortable Swipe
|
||||||
|
Comment=3/4-finger touchpad gestures
|
||||||
Loading…
Reference in New Issue
Block a user