~riderius/cpp-code

16edc2820250042e5eae49c4c72278fd7d88da0e — RIDERIUS 6 months ago d6db984
I created a CMake project to compile all programs with one command
2 files changed, 25 insertions(+), 0 deletions(-)

M .gitignore
A CMakeLists.txt
M .gitignore => .gitignore +3 -0
@@ 43,3 43,6 @@ Release/

#ccls
.ccls-cache/

#CMake
build/

A CMakeLists.txt => CMakeLists.txt +22 -0
@@ 0,0 1,22 @@
cmake_minimum_required(VERSION 3.5)
project(cpp_code)

set(CMAKE_CXX_STANDARD 17)

# Simple progs

add_executable(Celsius_to_Fahrenheit_converter Celsius_to_Fahrenheit_converter.cpp)
add_executable(Light_years_to_Astronomical_Units_Converter Light_years_to_Astronomical_Units_Converter.cpp)
add_executable(decimal2binary decimal2binary.cpp)
add_executable(digits_analysis digits_analysis.cpp)
add_executable(digit_or_letter digit_or_letter.cpp)
add_executable(fib fibonacci.cpp)
add_executable(reverse_int reverse_int.cpp)
add_executable(guess_the_number guess_the_number.cpp)
add_executable(codetime codetime.cpp)

# Curses progs

find_package(Curses)
add_executable(screensaver screensaver.cpp)
target_link_libraries(screensaver ${CURSES_LIBRARIES})