Подключение библиотеки из внешнего проекта
This commit is contained in:
8
3rdparty/libcmext/CMakeLists.txt
vendored
Normal file
8
3rdparty/libcmext/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.3)
|
||||
project(cmext)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
add_library(cmext cmext.cpp)
|
||||
install(TARGETS cmext ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES cmext.hpp COMPONENT headers DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_PROJECT_NAME})
|
||||
|
6
3rdparty/libcmext/cmext.cpp
vendored
Normal file
6
3rdparty/libcmext/cmext.cpp
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
#include "cmext.hpp"
|
||||
|
||||
int32_t cmext_init(int32_t i = 0) {
|
||||
return i;
|
||||
}
|
||||
|
9
3rdparty/libcmext/cmext.hpp
vendored
Normal file
9
3rdparty/libcmext/cmext.hpp
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef CMEXT_CMEXT_HPP_
|
||||
#define CMEXT_CMEXT_HPP_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
int32_t cmext_init(int32_t i);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user