Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use CMake
  • Loading branch information
Brandon committed Feb 21, 2019
1 parent 0577a86 commit 5206701
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 14,729 deletions.
7 changes: 6 additions & 1 deletion .gitignore
@@ -1 +1,6 @@
asgn1
build
CMakeFiles

cmake_install.cmake
CMakeCache.txt
Makefile
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "external/Catch2"]
path = external/Catch2
url = https://github.com/catchorg/Catch2
9 changes: 9 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.10.2)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

include_directories(includes)
add_subdirectory(external/Catch2)

add_executable(asgn1 src/asgn1/main.cpp)
target_link_libraries(asgn1 Catch2)
10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

21 changes: 21 additions & 0 deletions README.md
@@ -0,0 +1,21 @@
# CSE 3150 Testing

## Compiling

This project uses `cmake` to manage dependencies. Compiling the assignment testing binaries involves running a few commands. This produces an "out of source" build.

```sh
$ mkdir build
$ cd build
$ cmake ..
$ make
```

## Running

The built binaries will be available in the `build` folder. They expect to be ran with the student git repo as the current working directory.

```sh
$ cd cse3150sp18.brc15007
$ ~/cse3150-testing/build/bin/asgn1
```
1 change: 1 addition & 0 deletions external/Catch2
Submodule Catch2 added at 7012a3

0 comments on commit 5206701

Please sign in to comment.