~riderius/cpp-code

ref: 16edc2820250042e5eae49c4c72278fd7d88da0e cpp-code/CMakeLists.txt -rw-r--r-- 752 bytes
16edc282RIDERIUS I created a CMake project to compile all programs with one command 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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})