Skip to content

blockspacer/2hol_cmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a test to see how it would look if 2hol was built using cmake.

Build instructions

This assumes you are compiling on linux

Setup

pull down minorGems submodule

git submodule update --init --recursive

generate build directory

by default you can add -DCMAKE_BUILD_TYPE=[Debug|Release|RelWithDebInfo|MinSizeRel] to change how the binaray is built

To compile for linux

cmake -B build

To compile for windows

cmake -B build -DCMAKE_TOOLCHAIN_FILE=./toolchains/win32_cross_compile.cmake

After Setup

you can tell cmake to only compile the client or the server with the --target [server|client] flag and you can use the -jN flag to tell cmake to compile with more then one thread

this will compile the client using 8 threads

cmake --build build -j8 --target client

this will compile the client and the server using 1 thread

cmake --build build

About

A MVP for building 2hol client and server linux binaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.6%
  • C 9.2%
  • CMake 0.2%