Revision 982, 464 bytes
(checked in by smidl, 14 years ago)
|
Example application using bdm in C++
|
Line | |
---|
1 | # Matlab toolbox of functions from BDM |
---|
2 | |
---|
3 | cmake_minimum_required(VERSION 2.6) |
---|
4 | PROJECT(example_name) |
---|
5 | |
---|
6 | # Link it to BDM |
---|
7 | SET(BDM_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../library") |
---|
8 | SET(CMAKE_MODULE_PATH "${BDM_SOURCE_DIR}/system") |
---|
9 | |
---|
10 | # Load BDM environment |
---|
11 | INCLUDE(SetBdmEnv) |
---|
12 | |
---|
13 | include_directories (${BDM_SOURCE_DIR}/bdm) |
---|
14 | link_directories (${BDM_SOURCE_DIR}/bdm) |
---|
15 | |
---|
16 | add_library(example_lib example_lib.cpp example_lib.h) |
---|
17 | |
---|
18 | EXEC(example_main example_lib ) |
---|
19 | |
---|
20 | |
---|