GithubHelp home page GithubHelp logo

i066088 / beison Goto Github PK

View Code? Open in Web Editor NEW

This project forked from northwindtraders/beison

0.0 0.0 0.0 4.35 MB

A simple json parsing and stringifying library

License: Other

C++ 73.32% CMake 26.68%

beison's Introduction

Work with CMake Project

  • Create the build folder
mkdir build
cd build
  • Generate the project:
# to build dynamic library
cmake -DBUILD_SHARED_LIBS=ON ..
# to build static library
cmake ..

The output is like:

-- Building for: Visual Studio 17 2022
-- The CXX compiler identification is MSVC 19.36.32535.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: E:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (6.1s)
-- Generating done (0.1s)
-- Build files have been written to: E:/GitHub/beison/build

By default, VS is used to generate the build files. However, you can also select a different generator and specify a build type, like below:

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug ..
  • Build the project:
cmake --build . --config=Release
cmake --build . --config=Debug
  • Install the project:
cmake --install .
  • What is installed
-- Install configuration: "Release"
-- Installing: C:/Program Files (x86)/beison/share/beison/beison-config.cmake
-- Installing: C:/Program Files (x86)/beison/share/beison/beison-config-version.cmake
-- Installing: C:/Program Files (x86)/beison/lib/beison.lib
-- Installing: C:/Program Files (x86)/beison/bin/beison.dll
-- Installing: C:/Program Files (x86)/beison/include
-- Installing: C:/Program Files (x86)/beison/include/beison.h
-- Installing: C:/Program Files (x86)/beison/share/beison/beison-targets.cmake
-- Installing: C:/Program Files (x86)/beison/share/beison/beison-targets-release.cmake
  • Dependency

Open the beison VS project, you will find beicode is referenced.

C:\Program Files (x86)\beicode\lib\beicode.lib

Open beison-targets-release.cmake, you will find beicode is referenced.

set_target_properties(beison::beison PROPERTIES
  IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/beison.lib"
  IMPORTED_LINK_DEPENDENT_LIBRARIES_RELEASE "beicode::beicode"
  IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/beison.dll"
  )

beison's People

Contributors

i066088 avatar strega-nil 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.