summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-18 10:15:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-18 10:15:29 +0200
commit181770b1e169b9c7c75eacdc969102cce18a8be7 (patch)
tree9f7a990c37dd48f803c9005da13cd86d3f8534cd /proto-ft
parentc3a1174b922040da29b9c979343aa9fba24b46ba (diff)
some: adjust install paths and invocations
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/CMakeLists.txt2
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/proto-ft/CMakeLists.txt b/proto-ft/CMakeLists.txt
index f8a2fe1e..fb22ede4 100644
--- a/proto-ft/CMakeLists.txt
+++ b/proto-ft/CMakeLists.txt
@@ -1,4 +1,4 @@
if(WIN32)
opentrack_boilerplate(opentrack-proto-freetrack)
- target_link_libraries(opentrack-proto-freetrack opentrack-compat opentrack-csv)
+ target_link_libraries(opentrack-proto-freetrack opentrack-csv)
endif()
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp
index ccec3db0..111af156 100644
--- a/proto-ft/ftnoir_protocol_ft.cpp
+++ b/proto-ft/ftnoir_protocol_ft.cpp
@@ -8,6 +8,7 @@
#include "ftnoir_protocol_ft.h"
#include "csv/csv.h"
+#include "opentrack-library-path.h"
check_for_first_run FTNoIR_Protocol::runonce_check = check_for_first_run();
@@ -93,7 +94,7 @@ void FTNoIR_Protocol::pose(const double* headpose) {
}
void FTNoIR_Protocol::start_tirviews() {
- QString aFileName = QCoreApplication::applicationDirPath() + "/TIRViews.dll";
+ QString aFileName = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH "TIRViews.dll";
if ( QFile::exists( aFileName )) {
FTIRViewsLib.setFileName(aFileName);
FTIRViewsLib.load();
@@ -118,14 +119,14 @@ void FTNoIR_Protocol::start_tirviews() {
}
void FTNoIR_Protocol::start_dummy() {
- QString program = QCoreApplication::applicationDirPath() + "/TrackIR.exe";
+ QString program = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH "TrackIR.exe";
dummyTrackIR.setProgram("\"" + program + "\"");
dummyTrackIR.start();
}
void FTNoIR_Protocol::set_protocols(bool ft, bool npclient)
{
- const QString program_dir = QCoreApplication::applicationDirPath() + "/";
+ const QString program_dir = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH;
// Registry settings (in HK_USER)
QSettings settings_ft("Freetrack", "FreetrackClient");