initial commit

This commit is contained in:
2024-06-03 16:38:39 +03:00
parent 0206dd7f90
commit 14a9324ec5
17 changed files with 707 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.20)
set(EXTLIB teldummy)
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(PkgConfig REQUIRED)
pkg_check_modules(${EXTLIB} REQUIRED usefull_macros)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC)
include_directories(${${EXTLIB}_INCLUDE_DIRS} ..)
link_directories(${${EXTLIB}_LIBRARY_DIRS})
add_library(${EXTLIB} SHARED ${SRC})
target_link_libraries(${EXTLIB} ${${EXTLIB}_LIBRARIES} -fPIC)
install(TARGETS ${EXTLIB} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

28
Dummy_telescope/main.c Normal file
View File

@@ -0,0 +1,28 @@
/*
* This file is part of the loccorr project.
* Copyright 2024 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "corrdevice.h"
#include <stdio.h>
void test(){
printf("Dummy telescope tested\n");
}
__attribute__ ((visibility("default"))) corrdev_t device = {
.testdevice = test,
};