Skip to content

Instantly share code, notes, and snippets.

@gabikat
gabikat / CMakeLists.txt
Created August 4, 2021 22:21
Example of CMakeLists.txt file for remote development (using specified directory for C++ header files)
cmake_minimum_required(VERSION 3.10)
project(productmatch)
set(CMAKE_CXX_STANDARD 14)
set(HF /usr/local/gcc-5.3.0/include)
set (CMAKE_CXX_FLAGS "-pthread")
include_directories(${HF})
add_executable(productmatch main.cpp productfinder.cpp productfinder.h utils.h)
@gabikat
gabikat / CMakeLists.txt
Last active August 4, 2021 22:18
Example of a simple CMakeLists.txt file for remote development
cmake_minimum_required(VERSION 3.10.2)
project(nt_analyzer)
set(CMAKE_CXX_STANDARD 14)
#add_executable(nt_analyzer nta_1a.cpp)
#target_compile_options(nt_analyzer PRIVATE -O3 -DINFILE=\"../input1a\" -DAPI=\"/usr/bin/nta1a\")
#add_executable(nt_analyzer nta_2a.cpp)
#target_compile_options(nt_analyzer PRIVATE -O2 -DINFILE=\"../input2a\" -DAPI=\"/usr/bin/nta2a\" -DMODE=\"concise\")
@gabikat
gabikat / get_tT2398.sh
Created August 2, 2021 16:31
Simple bash script to copy specific files or directories into another directory
# retrieves all directories from subs2 ending in -T2398 to copy into the directory 'subs'
for f in subs2/*-T2398
do
cp -r $f subs
done