forked from emilybache/Tennis-Refactoring-Kata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request emilybache#43 from pollen-metrology/CMAKE_FOR_CPP
feat: Allow to build the CPP flavor using CMake
- Loading branch information
Showing
4 changed files
with
41 additions
and
2 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build | ||
.* | ||
cmake-build-debug |
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,9 @@ | ||
project(Tennis-Refactoring) | ||
|
||
add_definitions(-DUSE_CMAKE) | ||
include_directories(${CMAKE_SOURCE_DIR}) | ||
|
||
add_executable(tennis1_tests tennis1.cc all_tests.cpp all_tests.hpp test_suite.tests.cpp) | ||
add_executable(tennis2_tests tennis2.cc all_tests.cpp all_tests.hpp test_suite.tests.cpp) | ||
add_executable(tennis3_tests tennis3.cc all_tests.cpp all_tests.hpp test_suite.tests.cpp) | ||
|
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,15 @@ | ||
# Tennis-Refactoring-Kata C++ | ||
|
||
## Using CMake, under Windows | ||
|
||
Sample setup (in a Windows console, using Git), and considering you are already located in this folder: | ||
``` | ||
mkdir build | ||
cd build | ||
cmake .. -G "Visual Studio 14 2015 Win64" | ||
Tennis-Refactoring.sln | ||
``` | ||
|
||
Visual Studio should start with the projects in it. | ||
You will have three different project, each one for a specific version of initial source code (1, 2 and 3). | ||
Tests are already complete, code is ready to refactor! |
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