forked from David-Haim/concurrencpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request David-Haim#8 from PazerOP/cmake_msvc
Add support for MSVC + CMake, Removal of sln/vcxproj files.
- Loading branch information
Showing
39 changed files
with
99 additions
and
2,087 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,5 @@ | |
|
||
#Specific directories | ||
/build | ||
/msvc_intermediate | ||
/msvc_intermediate | ||
out/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.17.0) | ||
cmake_minimum_required(VERSION 3.16) | ||
project(concurrencpp) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
if (MSVC) | ||
add_compile_options(/W3) | ||
else() | ||
add_compile_options(-Wall -Wextra) | ||
|
||
option(CONCURRENCPP_ENABLE_TSAN "Enables thread-sanitizer checks" OFF) | ||
if (CONCURRENCPP_ENABLE_TSAN) | ||
add_compile_options(-fsanitize=thread) | ||
add_link_options(-fsanitize=thread) | ||
endif() | ||
endif() | ||
|
||
add_subdirectory(concurrencpp) | ||
add_subdirectory(tests) | ||
add_subdirectory(sandbox) | ||
add_subdirectory(examples) | ||
#add_subdirectory(thread_sanitizers) | ||
|
||
if (CONCURRENCPP_ENABLE_TSAN) | ||
add_subdirectory(thread_sanitizers) | ||
endif() |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.