Closed Smalldy closed 2 years ago
It is always better to clean all the blank lines at the end of file.
And I don't think the author would accept this kind of CMakeLists.txt, since this repo is simply just a .h file and a cpp demo file.
yes it's my mistake
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年3月12日(星期六) 晚上9:28 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [progschj/ThreadPool] add CMakeLists.txt (PR #95)
It is always better to clean all the blank lines at the end of file.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>
maybe you are right , I just want to make it easy to run ...
maybe you are right , I just want to make it easy to run ...
You can just type once and then use something like Ctrl-r
for your shell to reuse the command from the shell history.
maybe you are right , I just want to make it easy to run ...
You can just type once and then use something like
Ctrl-r
for your shell to reuse the command from the shell history.
So sad that the last update was 8 years ago.. It is unnecessary to talk about the detail now. : (
cmake_minimum_required (VERSION 3.2)
project (threadpool)
add_library (ThreadPool INTERFACE)
target_include_directories (ThreadPool INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
target_compile_features (ThreadPool INTERFACE cxx_std_11)
if (BUILD_TESTING)
enable_testing ()
add_executable (test-ThreadPool example.cpp)
target_link_libraries (test-ThreadPool PRIVATE ThreadPool)
add_test (NAME ThreadPool-test COMMAND $<TARGET_FILE:test-ThreadPool>)
endif ()
This is more of a complete CMake file for this project FWIW.
A simple cmake file for c++11