A C++17 library for Windows and C++.
# FetchContent_MakeAvailable requires CMake 3.14+
cmake_minimum_required(VERSION 3.14)
project(example)
# fetch IbWinCppLib
include(FetchContent)
FetchContent_Declare(IbWinCpp
GIT_REPOSITORY https://github.com/Chaoses-Ib/IbWinCppLib.git
# it is recommanded to specify a version instead of using the master branch
GIT_TAG master
)
FetchContent_MakeAvailable(IbWinCpp)
# here is your project
add_executable(example example.cpp)
target_link_libraries(example PRIVATE IbWinCpp)
cmd:
mkdir build
cd build
cmake ..
cmake --build .
Open VS Developer Command Prompt and run:
git clone https://github.com/Chaoses-Ib/IbWinCppLib.git
cd IbWinCppLib
mkdir build
cd build
cmake ..
Then you can reference build/IbWinCpp.vcxproj in your project.
- Clone or download this repository.
- Open the directory with Visual Studio.
- In CMake Settings/Advanced, change CMake generator to VS and save.
- Reference out/build/IbWinCpp.vcxproj in your project.