Skip to content
Snippets Groups Projects
Commit 3900296b authored by florian's avatar florian
Browse files

DRAFT: Add dummy wrapper to test including libcaosdb

parent e9ccb329
No related branches found
No related tags found
1 merge request!1DRAFT: ENH: Include libcaosdb and a minimal wrapper
Pipeline #9970 passed
*~
/deps/build.log
/docs/build/
/jlcaosdb/build/
project(JLCaosDB)
cmake_minimum_required(VERSION 3.1)
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
# Add local installation of libcaosdb to CMAKE_PREFIX_PATH
find_package(caosdb)
find_package(JlCxx)
get_target_property(JlCxx_location JlCxx::cxxwrap_julia LOCATION)
get_filename_component(JlCxx_location ${JlCxx_location} DIRECTORY)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib;${JlCxx_location}")
add_library(jlcaosdb SHARED jlcaosdb.cxx)
# Append libcaosdb to this list
target_link_libraries(jlcaosdb JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl)
install(TARGETS jlcaosdb
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
/*
*
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2021 Florian Spreckelsen <f.spreckelsen@indiscale.com>
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*
*/
#include <jlcxx/jlcxx.hpp>
#include "caosdb/connection.h"
JLCXX_MODULE define_julia_module(jlcxx::Module& mod)
{
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment