Unverified Commit 41748d16 authored by Jeff Niu's avatar Jeff Niu Committed by GitHub

Merge pull request #54 from Mogball/jeff/linux_threads

[HF] Thread library on linux + Ubuntu 16.04 setup docs
parents 896838ee 9193f8db
......@@ -19,11 +19,13 @@ project(minotaur-cpp)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS} -std=c++11")
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(PythonLibs 3.4 REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Threads REQUIRED)
if (Qt5_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
......@@ -90,6 +92,7 @@ add_executable(minotaur-cpp ${SOURCE_FILES} ${HEADER_FILES} ${FORM_FILES} ${THIR
target_link_libraries(minotaur-cpp Qt5::Widgets Qt5::Core Qt5::Gui)
target_link_libraries(minotaur-cpp ${PYTHON_LIBRARIES})
target_link_libraries(minotaur-cpp "${CMAKE_THREAD_LIBS_INIT}")
target_include_directories(minotaur-cpp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(minotaur-cpp PRIVATE PYTHON_SCRIPT_DIR="${PYTHON_SCRIPT_DIR}")
......
......@@ -87,6 +87,25 @@ argument.
CMake might have a hard time finding the correct Python version because Apple. Ping me `@jeffniu22`
if you've got any issues.
# Setting up Minotaur on Ubuntu 16.04
From a fresh install, you will need these packages
```bash
sudo apt install build-essential cmake python3 python3-dev qt5-default libudev-dev git
```
Then clone the repository and build with
```bash
git clone https://github.com/uwnrg/minotaur-cpp.git
cd minotaur-cpp
mkdir build
cd build
cmake ../
make
```
And then run with `./minotaur-cpp`
### Contributing
Please refer to the [Contributing Guidelines](CONTRIBUTING.md).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment