mirror of
https://github.com/eddyem/astrovideoguideNG.git
synced 2026-03-21 17:21:02 +03:00
initial commit
This commit is contained in:
15
Dummy_telescope/CMakeLists.txt
Normal file
15
Dummy_telescope/CMakeLists.txt
Normal 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
28
Dummy_telescope/main.c
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user