Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ before_install:
- sudo apt-get -y -d update
- eval "${MATRIX_EVAL}"
install:
- sudo apt-get -y install cmake3 libboost-regex1.60-dev libboost-test1.60-dev libboost-date-time1.60-dev
- sudo apt-get -y install cmake3 libboost-test1.60-dev libboost-date-time1.60-dev
script:
- bin/fetch-configlet
- bin/configlet lint .
Expand Down
5 changes: 2 additions & 3 deletions exercises/acronym/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/all-your-base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/allergies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/anagram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/atbash-cipher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/beer-song/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/binary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/bob/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/bracket-push/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/clock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/crypto-square/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/difference-of-squares/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/etl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/food-chain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/gigasecond/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/grade-school/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
5 changes: 2 additions & 3 deletions exercises/grains/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cmake_minimum_required(VERSION 3.1.3)
# Name the project after the exercise
project(${exercise} CXX)

# Locate Boost libraries: unit_test_framework, date_time and regex
# Locate Boost libraries: unit_test_framework and date_time
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time)

# Get a source filename from the exercise name by replacing -'s with _'s
string(REPLACE "-" "_" file ${exercise})
Expand Down Expand Up @@ -43,7 +43,6 @@ target_link_libraries(${exercise}
PRIVATE
Boost::unit_test_framework
Boost::date_time
Boost::regex
)

# Configure to run all the tests?
Expand Down
Loading