Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set(CMAKE_CXX_STANDARD 11) # Enable c++11 standard
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH})

# Find Ncursesw
find_package( Ncursesw REQUIRED )
find_package( PkgConfig REQUIRED )
pkg_search_module( CURSES REQUIRED ncursesw )
include_directories( ${CURSES_INCLUDE_DIRS} )

# Add CommandLineFPS.cpp file of project root directory as source file
Expand All @@ -16,4 +17,4 @@ set(SOURCE_FILES CommandLineFPS.cpp)
add_executable(CommandLineFPS ${SOURCE_FILES})

# Link ncursesw library
target_link_libraries( CommandLineFPS ${CURSES_LIBRARIES} )
target_link_libraries( CommandLineFPS ${CURSES_LIBRARIES} m )
3 changes: 2 additions & 1 deletion linux/CommandLineFPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
#include <vector>
#include <algorithm>
#include <chrono>
#include <ncursesw/ncurses.h>
#include <ncurses.h>
#include <sstream>
#include <math.h>

using namespace std;

Expand Down
204 changes: 0 additions & 204 deletions linux/FindNcursesw.cmake

This file was deleted.

5 changes: 3 additions & 2 deletions linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

### Installation

* Ubuntu: `sudo apt-get install cmake libncursesw5-dev`
* Ubuntu: `sudo apt-get install pkg-config cmake libncursesw5-dev`
* Arch: `pacman -S pkg-config cmake ncurses`
* Other distros: `¯\_(ツ)_/¯`

## Build

```sh
mkdir build
cd build
cmake ..
cmake ../
make
```

Expand Down