-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
101 additions
and
91 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,15 +1,38 @@ | ||
cmake_minimum_required(VERSION 3.16.0) | ||
project(monitor_gpu | ||
project(nwindows | ||
VERSION 0.0.1 | ||
DESCRIPTION "Monitor CPU and GPU clock speeds." | ||
DESCRIPTION "Modern Text User Interface Library for C++." | ||
HOMEPAGE_URL "https://rerdavies.github.io/nwindows/" | ||
LANGUAGES CXX | ||
) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set(NWINDOWS_BUILD_DOCUMENTATION ON CACHE BOOL "Build the Vite Documentation website?") | ||
set(NWINDOWS_BUILD_EXAMPLES ON CACHE BOOL "Build the exmaple projects?") | ||
# Set to ON if you wish to set compler options froma parent CMakeList.txt file. | ||
set(NWINDOWS_DEFAULT_COMPILER_OPTIONS OFF CACHE BOOL "Use default compiler options?") | ||
|
||
|
||
|
||
if (NOT NWINDOWS_DEFAULT_COMPILER_OPTIONS) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
#if CLANG Compiler | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
add_compile_options( | ||
"-Werror" "-Wall" "-Wpedantic" "-Wuninitialized" | ||
) | ||
endif() | ||
# if GNU compiler | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
add_compile_options( | ||
"-Werror" "-Wall" "-Wpedantic" "-Wuninitialized" | ||
) | ||
endif() | ||
endif() | ||
|
||
|
||
add_subdirectory("src") | ||
|
||
|
@@ -22,3 +45,10 @@ endif() | |
if(NOT DEFINED ENV{GITHUB_ACTIONS}) | ||
add_subdirectory("docs") | ||
endif() | ||
|
||
#debian packaging | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Robin E. R. Davies <[email protected]>") | ||
set(CPACK_DEBIAN_FILE_NAME 'nwindows$CMAKE_PACKAGE_MAJOR-$ARCH.deb') | ||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Modern Text User Interface Library for C++") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "xclip, libicu-dev") | ||
include(CPack) |
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
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
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
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
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
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
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,8 +1,3 @@ | ||
#!/usr/bin/sudo bash | ||
# copy files to installation directories | ||
cmake --install build --prefix /usr --config Release -v | ||
# Done as an install action by the debian package. | ||
sudo /usr/bin/pipedalconfig --install | ||
# copy pipedalPluginProfile as well. | ||
sudo cp build/src/pipedalProfilePlugin /usr/bin/pipedalProfilePlugin | ||
chmod +X /usr/bin/pipedalProfilePlugin | ||
cmake --install build --config Release -v |
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,3 @@ | ||
cd build | ||
cpack -G DEB -C Release -config CPackConfig.cmake | ||
cd .. |
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
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
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
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
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
Oops, something went wrong.