-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7d62b7
commit 7264280
Showing
4 changed files
with
61 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Right | ||
IndentWidth: 2 |
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 |
---|---|---|
|
@@ -30,3 +30,6 @@ | |
*.exe | ||
*.out | ||
*.app | ||
|
||
# CMake | ||
build/ |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(Bootcamp | ||
DESCRIPTION "C++ Bootcamp for 15-445/645" | ||
LANGUAGES CXX) | ||
|
||
set(BOOTCAMP_CLANG_SEARCH_PATH "/usr/local/bin" "/usr/bin" "/usr/local/opt/llvm/bin" "/usr/local/opt/llvm@14/bin" | ||
"/opt/homebrew/opt/llvm@14/bin/") | ||
|
||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
if(CMAKE_CXX_COMPILER_VERSION MATCHES "^14.") | ||
message(STATUS "You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}") | ||
else() | ||
message(WARNING "!! We recommend that you use clang-14 for this bootcamp. You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, a different version.") | ||
endif() | ||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") | ||
message(STATUS "You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}") | ||
else() | ||
message(WARNING "!! We recommend that you use clang-14 for this bootcamp. You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, which is not clang.") | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
# Compiling move semantics/references executables | ||
add_executable(references src/references.cpp) | ||
add_executable(move_semantics src/move_semantics.cpp) | ||
add_executable(move_constructors src/move_constructors.cpp) | ||
|
||
# Compiling templates executables | ||
|
||
# Compiling C++ STL executables | ||
|
||
# Compiling misc executables | ||
|
||
# Find clang_format bin | ||
find_program(CLANG_FORMAT_BIN | ||
NAMES clang-format clang-format-14 | ||
HINTS ${BOOTCAMP_CLANG_SEARCH_PATH}) |
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