Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- undefined reference to `sum'
- undefined reference to `rest'
- undefined reference to `multi'
- CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
- PROJECT(Example C)
- include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
- conan_basic_setup()
- SET(MyExample_SRC
- "main.c")
- add_executable(example ${MyExample_SRC})
- target_link_libraries(example ${CONAN_LIBS})
- [requires]
- Exa/0.1@edwin/testing
- [generators]
- cmake
- from conans import ConanFile, CMake, tools
- class ExaConan(ConanFile):
- name = "Exa"
- version = "0.1"
- settings = "os", "compiler", "build_type", "arch"
- generators = "cmake"
- def source(self):
- #self.run("CD C:/projects/connan-example/pkg")
- pass
- def build(self):
- self.run("CD C:/projects/connan-example/pkg/ & Compile.bat")
- #cmake = CMake(self)
- #make.configure(source_folder="connan-example")
- #cmake.build()
- def package(self):
- self.copy("MultiDiv.obj", dst="objects", keep_path=False)
- self.copy("SumRest.c", dst="source", keep_path=False)
- #self.copy("*.lib", dst="lib", keep_path=False)
- def package_info(self):
- #self.c_info.libs = ["example"]
- pass
Add Comment
Please, Sign In to add comment