-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: #570 Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
- Loading branch information
1 parent
41a394b
commit ab01dfb
Showing
7 changed files
with
48 additions
and
0 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,18 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
message(STATUS "CMake version ${CMAKE_VERSION}") | ||
|
||
set(LANGUAGES C CXX) | ||
set(BML_BUILD_FORTRAN_INTERFACE TRUE CACHE BOOL | ||
"Build the Fortran API (requires a Fortran compiler)") | ||
if(BML_BUILD_FORTRAN_INTERFACE) | ||
list(APPEND LANGUAGES Fortran) | ||
endif() | ||
|
||
set(BML_BUILD_PYTHON_INTERFACE TRUE CACHE BOOL | ||
"Build the Python API (requires Python dev package)") | ||
|
||
project(bml ${LANGUAGES}) # don't move this line as it changes PROJECT_SOURCE_DIR | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(tests) |
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,2 @@ | ||
add_library(bml | ||
bml_allocate.cc) |
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,4 @@ | ||
#ifndef __BML_H | ||
#define __BML_H | ||
|
||
#endif |
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,8 @@ | ||
#include "bml_types.h" | ||
|
||
#include <stdlib.h> | ||
|
||
void * bml_allocate(int rows) | ||
{ | ||
return malloc(10); | ||
} |
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,6 @@ | ||
#ifndef __BML_TYPES_H | ||
#define __BML_TYPES_H | ||
|
||
typedef void * BML_MATRIX_DENSE_T; | ||
|
||
#endif |
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,3 @@ | ||
include_directories(${CMAKE_SOURCE_DIR}/src) | ||
add_executable(bml-test | ||
bml-test.cc) |
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,7 @@ | ||
#include <bml.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
int main() { | ||
printf("starting tests\n"); | ||
} |