mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Bump required CMake version to 3.13 and make target source paths private and relative
This commit is contained in:
parent
b3694fa291
commit
a2a3489a74
4 changed files with 28 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.8)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
project(calculator CXX)
|
project(calculator CXX)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ Prerequisites:
|
||||||
|
|
||||||
### On macOS/Linux
|
### On macOS/Linux
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
- CMake 3.8 or newer
|
- CMake 3.13 or newer
|
||||||
- C++17-compatible compiler, e.g. GCC 7 or Clang 4
|
- C++17-compatible compiler, e.g. GCC 7 or Clang 4
|
||||||
|
|
||||||
- Create a new directory named `cmake_build` in the repository folder
|
- Create a new directory named `cmake_build` in the repository folder
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
target_sources(CalcManager PUBLIC
|
target_sources(CalcManager PRIVATE
|
||||||
CEngine/calc.cpp
|
calc.cpp
|
||||||
CEngine/CalcInput.cpp
|
CalcInput.cpp
|
||||||
CEngine/CalcUtils.cpp
|
CalcUtils.cpp
|
||||||
CEngine/History.cpp
|
History.cpp
|
||||||
CEngine/Number.cpp
|
Number.cpp
|
||||||
CEngine/Rational.cpp
|
Rational.cpp
|
||||||
CEngine/RationalMath.cpp
|
RationalMath.cpp
|
||||||
CEngine/scicomm.cpp
|
scicomm.cpp
|
||||||
CEngine/scidisp.cpp
|
scidisp.cpp
|
||||||
CEngine/scifunc.cpp
|
scifunc.cpp
|
||||||
CEngine/scioper.cpp
|
scioper.cpp
|
||||||
CEngine/sciset.cpp
|
sciset.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
target_sources(CalcManager PUBLIC
|
target_sources(CalcManager PRIVATE
|
||||||
Ratpack/basex.cpp
|
basex.cpp
|
||||||
Ratpack/conv.cpp
|
conv.cpp
|
||||||
Ratpack/exp.cpp
|
exp.cpp
|
||||||
Ratpack/fact.cpp
|
fact.cpp
|
||||||
Ratpack/itrans.cpp
|
itrans.cpp
|
||||||
Ratpack/itransh.cpp
|
itransh.cpp
|
||||||
Ratpack/logic.cpp
|
logic.cpp
|
||||||
Ratpack/num.cpp
|
num.cpp
|
||||||
Ratpack/rat.cpp
|
rat.cpp
|
||||||
Ratpack/support.cpp
|
support.cpp
|
||||||
Ratpack/trans.cpp
|
trans.cpp
|
||||||
Ratpack/transh.cpp
|
transh.cpp
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue