Giter VIP home page Giter VIP logo

mat's Introduction

mat

This is a subdirectory CMake project that consists of a simple example library with a function and an executable linked to that library which invokes the function of the library.

Requirements

Windows

Please use "command prompt" while following next steps

  1. Install chocolatey by following https://chocolatey.org/install
  2. Install CMake, Python, conan and WiXToolset
    choco install cmake python conan wixtoolset
  3. If you have Visual Studio 2022 (C++ Build Tools should be installed), please skip this step. To install Visual Studio 2022 Build Tools using choco:
    choco install visualstudio2022buildtools
  4. Create a default profile if you don't have one:
    conan profile detect --force

MacOS

  1. Make sure that you have installed Xcode Command Line Tools properly
    xcode-select --install
  2. Install homebrew using /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Please make sure that you have installed CMake 3.23.3+, otherwise you will see "No CMAKE_CXX_COMPILER could be found." like errors
    brew install cmake python conan
  4. Create a default profile if you don't have one:
    conan profile detect --force

Build and Run

Windows

  1. Install dependencies using conan:
    conan install . --output-folder=build --build=missing --settings=build_type=Debug
  2. Run CMake to configure project: (Replace "Visual Studio 17 2022" if you use another version of build tools, you can get a list of them using cmake)
    cd build
    cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
  3. Build project:
    cmake --build . --config Debug

You can open the root folder using Visual Studio. But you should select "Debug" as Startup Item in the dropdown.

Build Installer

python create_installer_windows.py

# set the wix bin/ path if the installed WiX isn't in the default path
python create_installer_windows.py # --wix_bin_path="<WIX_BIN_PATH>"

MacOS

  1. Install dependencies using conan:
    conan install . --output-folder=build --build=missing --settings=build_type=Debug
  2. Run CMake to configure project:
    cd build
    cmake .. -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
  3. Build project:
    cmake --build . --config Debug

Build Installer

python create_dmg_macos.py

mat's People

Contributors

bariscelik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.