Last active
December 29, 2021 01:44
-
-
Save cdecl/53a0fc6feb42fc2b0f18aebd25b40b13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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