mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-09 16:22:26 +01:00
Fix windows build
This commit is contained in:
@@ -58,9 +58,17 @@ install(TARGETS c_control
|
||||
)
|
||||
|
||||
# C++ API Library
|
||||
if(WIN32)
|
||||
add_library(control SHARED
|
||||
${COMMON_SOURCES}
|
||||
)
|
||||
target_compile_definitions(control PRIVATE CONTROL_EXPORTS)
|
||||
set_target_properties(control PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
else()
|
||||
add_library(control SHARED
|
||||
${COMMON_SOURCES}
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(control PUBLIC include)
|
||||
target_link_libraries(control
|
||||
|
||||
@@ -7,13 +7,13 @@ from conan.tools.files import copy
|
||||
|
||||
class MyLibraryConan(ConanFile):
|
||||
name = "libcontrol"
|
||||
version = "1.0.0"
|
||||
version = "1.0.2"
|
||||
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
options = {"shared": [True, False], "fPIC": [True, False]}
|
||||
default_options = {"shared": True, "fPIC": True}
|
||||
|
||||
exports_sources = "CMakeLists.txt", "src/*", "include/*"
|
||||
exports_sources = "CMakeLists.txt", "src/*", "include/*", "control.def"
|
||||
|
||||
def layout(self):
|
||||
cmake_layout(self)
|
||||
@@ -36,6 +36,7 @@ class MyLibraryConan(ConanFile):
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.libs = ["control"]
|
||||
self.cpp_info.includedirs = ["include"]
|
||||
|
||||
def requirements(self):
|
||||
self.requires("flatbuffers/24.12.23")
|
||||
|
||||
Reference in New Issue
Block a user