Skip to content

Commit bbb7dbf

Browse files
committed
update template
1 parent aba21ae commit bbb7dbf

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

template/.vscode/cmake-variants.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildType:
44
choices:
55
release:
66
short: Release
7-
long: "Building with optimizations"
7+
long: "Build with optimizations"
88
buildType: Release
99
debug:
1010
short: Debug

template/CMakeLists.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cmake_minimum_required(VERSION 3.13)
22

3-
# create your project
3+
# create your C++ project
44
project(MyProject VERSION 0.1.0 LANGUAGES CXX)
55

6-
# find MEL
6+
# find MEL::MEL and all available MEL::xxx modules
77
find_package(MEL REQUIRED)
88

99
# add your include directories
@@ -16,9 +16,10 @@ add_executable(my_app
1616
"src/my_app.cpp"
1717
)
1818

19-
# link MEL core lib and/or MEL sublibs to your app
19+
# link your app to MEL libaries
2020
target_link_libraries(my_app
21-
MEL::MEL # common MEL classes
22-
# MEL::quanser # needed if using MEL Quanser classes
23-
# MEL::myo # needed if using MEL Myo classes
21+
MEL::MEL # common MEL classes available on all systems
22+
# MEL::quanser # needed if using MEL Quanser classes
23+
# MEL::myo # needed if using MEL Myo classes
24+
# MEL::myrio # needed if using MEL NI myRIO classes
2425
)

template/include/MyClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
23
class MyClass {
34
public:
45
void hello_world() const;

template/src/my_app.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "MyClass.hpp"
2-
#include <MEL/Daq/NI/MyRio/MyRio.hpp>
32

43
int main() {
54
MyClass my_class;

0 commit comments

Comments
 (0)