forked from labstreaminglayer/App-eegoSports
-
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
Qihang Yang
committed
Mar 26, 2019
1 parent
e3a1f9c
commit 49c87e7
Showing
16 changed files
with
1,348 additions
and
1,513 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CMakeLists.txt.user* |
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,49 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(eegoSports | ||
LANGUAGES CXX | ||
VERSION 0.1.0) | ||
add_compile_options(-std=c++17) | ||
# set up LSL if not done already | ||
if(NOT TARGET LSL::lsl) | ||
# when building out of tree LSL_ROOT needs to be specified on the cmd line | ||
file(TO_CMAKE_PATH "${LSL_INSTALL_ROOT}" LSL_INSTALL_ROOT) | ||
list(APPEND LSL_INSTALL_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../LSL/liblsl/build/install") | ||
find_package(LSL HINTS ${LSL_INSTALL_ROOT}/share/LSL/ ${LSL_INSTALL_ROOT}/LSL/share/LSL QUIET) | ||
if(NOT LSL_FOUND) | ||
message(FATAL_ERROR "Precompiled LSL was not found. Set LSL_INSTALL_ROOT to the LSL installation path ( cmake -DLSL_INSTALL_ROOT=/path/to/installed/lsl)") | ||
endif() | ||
list(APPEND CMAKE_MODULE_PATH ${LSL_DIR}) | ||
message(STATUS "Looking for LSLCMake in ${LSL_DIR}") | ||
include(LSLCMake) | ||
endif() | ||
|
||
find_package(Qt5 REQUIRED COMPONENTS Widgets Network Charts) | ||
find_package(Boost REQUIRED) | ||
include_directories(eemagine/sdk ${LSL_INSTALL_ROOT}/include) | ||
link_directories(${EEMAGINE_SDK_DIR}) | ||
|
||
add_executable(${PROJECT_NAME} MACOSX_BUNDLE | ||
#eemagine/sdk/wrapper.cc | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
mainwindow.ui | ||
|
||
) | ||
target_link_libraries(${PROJECT_NAME} | ||
PRIVATE | ||
Qt5::Widgets | ||
Qt5::Network | ||
Qt5::Charts | ||
LSL::lsl | ||
${Boost_LIBRARIES} | ||
${CMAKE_DL_LIBS} | ||
eego-SDK | ||
) | ||
|
||
|
||
|
||
installLSLApp(${PROJECT_NAME}) | ||
|
||
LSLGenerateCPackConfig() | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.