Skip to content

Instantly share code, notes, and snippets.

View mightbxg's full-sized avatar

Xinguang Bian mightbxg

  • Nanjing, Jiangsu, China
View GitHub Profile
@mightbxg
mightbxg / pacman.conf
Created July 19, 2021 04:02 — forked from emilydelorme/pacman.conf
My personnal pacman.conf using wget
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
@mightbxg
mightbxg / CMakeLists.txt
Last active March 1, 2021 02:48 — forked from baiwfg2/CMakeLists.txt
How to use add_custom_target and add_custom_command correctly in cmake
# References:
# https://cmake.org/cmake/help/latest/command/add_custom_target.html
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
# https://gist.github.com/socantre/7ee63133a0a3a08f3990
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777
cmake_minimum_required(VERSION 3.10)