Skip to content

Instantly share code, notes, and snippets.

@cdecl
Last active December 29, 2021 01:44
Show Gist options
  • Save cdecl/53a0fc6feb42fc2b0f18aebd25b40b13 to your computer and use it in GitHub Desktop.
Save cdecl/53a0fc6feb42fc2b0f18aebd25b40b13 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.11)
project(main)
set(CMAKE_CXX_STANDARD 17)
add_executable(main main.cpp)
# add_library(main SHARED ${src})
# add_library(main STATIC ${src})
# set_target_properties(main PROPERTIES OUTPUT_NAME mainstatic)
target_compile_options(main PRIVATE -Wall -O2)
# target_include_directories(main PRIVATE )
# target_link_directories(main PRIVATE )
# target_link_libraries(main PRIVATE -pthread)
##
# cmake -B build "-DCMAKE_TOOLCHAIN_FILE=/home/cdecl/lib/vcpkg/scripts/buildsystems/vcpkg.cmake"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment