Skip to content

Commit

Permalink
cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Aug 25, 2023
1 parent 6c2c082 commit ce48482
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ set(SETTINGS_PATH "${PROJECT_BINARY_DIR}/bin")

# Add dirent.h if compiler is MSVC
if(MSVC)

find_package( Eigen3 REQUIRED )

find_package(GLEW REQUIRED)
message("${CMAKE_SOURCE_DIR}/include")
include_directories("${CMAKE_SOURCE_DIR}/include")
include_directories("${CMAKE_SOURCE_DIR}/eigen-3.4.0")
Expand Down
10 changes: 9 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain
from conan.tools.cmake import cmake_layout



class LibreCAD3(ConanFile):
settings = "os", "arch", "compiler", "build_type"
requires = "boost/1.80.0", "eigen/3.4.0", "freetype/2.13.0", "glew/2.1.0", "glfw/3.3.8", "glm/0.9.9.8", "libdxfrw/1.0.1", "libcurl/8.2.1", "lua/5.3.5", "rapidjson/1.1.0"
generators = "CMakeDeps"
generators = "CMakeToolchain", "CMakeDeps"

def generate(self):
tc = CMakeToolchain(self)
Expand All @@ -17,3 +19,9 @@ def build(self):

def package(self):
self.copy("*.h", dst="include", keep_path=True)

def build_requirements(self):
self.tool_requires("cmake/3.22.6")

def layout(self):
cmake_layout(self)

0 comments on commit ce48482

Please sign in to comment.