Skip to content

Instantly share code, notes, and snippets.

View vorachet's full-sized avatar

Vorachet Jaroensawas vorachet

View GitHub Profile
@vorachet
vorachet / ConOpsDsl Grammar
Created June 10, 2022 09:32
Grammar design for ConOpsDsl
/*****************************************************************************
* ConOpsDsL Implementation
* Copyright (c) 2022 Script Conductive Co., Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@vorachet
vorachet / gist:cee2e14a2f727230f77f3926ac9adab2
Created December 18, 2020 07:25
CMAKE for ZMQPP (Linux + MaxOS)
cmake_minimum_required(VERSION 3.10)
project(lab_zmq)
set(CMAKE_CXX_STANDARD 11)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
if (UNIX AND NOT APPLE)
message("LNUX")
endif()
@vorachet
vorachet / gist:7d67702675bacbf2d290e05fa07e9b37
Created December 15, 2020 12:06
MacOS CMake configuration for cpprestsdk, Boost, OpenSSL1.1, libmongocxx, and libbsoncxx
cmake_minimum_required(VERSION 3.15)
project(example)
set(CMAKE_CXX_STANDARD 17)
if (APPLE)
set(OPENSSL_ROOT_DIR ${OPENSSL_ROOT_DIR} /usr/local/Cellar/openssl@1.1/1.1.1g/)
set(OPENSSL_CRYPTO_LIBRARY ${OPENSSL_ROOT_DIR}/lib/libcrypto.dylib CACHE FILEPATH "" FORCE)
set(OPENSSL_SSL_LIBRARY ${OPENSSL_ROOT_DIR}/lib/libssl.dylib CACHE FILEPATH "" FORCE)
endif()