Skip to content

Commit

Permalink
vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Nov 29, 2024
1 parent 5eb0e7d commit e963332
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
on:: [push]

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ if(NOT GIT_EXECUTABLE)
find_package(Git)
endif()

find_package(Threads)

# Fetch some OpenMind
include(FetchContent)
FetchContent_Declare(skrypt
Expand Down
4 changes: 4 additions & 0 deletions libgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ option(PNG_STATIC "Build static lib" ON)
set(deplist
libskrypt

Boost::filesystem
Boost::program_options
Boost::serialization

libjpeg-turbo/libjpeg-turbo
libjpeg-turbo::turbojpeg-static
)
Expand Down
5 changes: 5 additions & 0 deletions picture-pattern-generate/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ int main(int argc, char** argv)

std::cout << "Image pattern (formulas for channels of width, height, x, y):" << std::endl;
auto names = gen::InitialVarNames();
auto less = "x"_va.IntMod_Less("y"_va);
std::cout << "X<Y: " << less << std::endl;
std::cout << "bool X<Y: ..."
//<< less.ToBool()
<< std::endl;
auto varhost = names.begin()->second.getVaHost();
Valuable red(StdIn("Red(w,h,x,y)"), varhost, true);
Valuable green(StdIn("Green(w,h,x,y)"), varhost, true);
Expand Down
36 changes: 36 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"builtin-baseline": "3508985146f1b1d248c67ead13f8f54be5b4f5da",
"name": "generator",
"version": "1.0.0",
"description": "HPC Generator of datasets Tool",
"dependencies": [
"boost",
"boost-chrono",
"boost-compute",
"boost-date-time",
"boost-dll",
"boost-filesystem",
"boost-gil",
"boost-iostreams",
"boost-locale",
"boost-multiprecision",
"boost-program-options",
"boost-serialization",
"boost-system",
"boost-test",
"boost-thread",
"boost-uuid",
"leveldb",
"libpng",
"zlib",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

0 comments on commit e963332

Please sign in to comment.