Files
rdkit/Code/MinimalLib/testMinilib.cpp
Greg Landrum ca206fcce6 Add minimal JavaScript wrapper (#2444)
* not really working from cmake, but can be compiled by hand

* now a cmake build works

* add a bunch of new stuff

* lots of changes

* demo

* substructure highlighting (crude) and descriptors

* include amw

* update

* cleanup

* add first fingerprint

* add tests

* add fp

* make the new stuff optional

* add Dockerfile

* add a readme

* switch to using JSON for complex return values
2019-06-06 08:45:21 +02:00

28 lines
609 B
C++

//
//
// Copyright (C) 2019 Greg Landrum
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <emscripten.h>
#include <iostream>
#include <string>
#include <MinimalLib/minilib.h>
EMSCRIPTEN_KEEPALIVE
int lping() {
std::cerr << "blah blah" << std::endl;
return 2;
}
int main() {
std::string smi = "c1ccccc1O";
std::string csmi = canon_smiles(smi);
std::cerr << csmi << std::endl;
assert(smi == "Oc1ccccc1");
}