Skip to content

Commit

Permalink
Move sources into 'include' and 'src' directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tigertv committed Dec 8, 2020
1 parent 7e84a41 commit 18c681b
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 26 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ else()
add_compile_options(-Wall -Wextra -pedantic)
endif()

set(BINT_SRC Bint.cpp Bint.h)
set(MATH_SRC Math.cpp Math.h)
include_directories(include)
set(BINT_SRC src/Bint.cpp)
set(MATH_SRC src/Math.cpp)
add_library(shareobjects OBJECT ${BINT_SRC} ${MATH_SRC})

add_executable(test-main-fast tests/main.cpp ${BINT_SRC} ${MATH_SRC})
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Bint.cpp → src/Bint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

#include "Bint.h"
#include <Bint/Bint.h>

#include "Bint/arithmetics.cpp"
#include "Bint/comparison.cpp"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Math.cpp → src/Math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE.
*/

#include "Math.h"
#include <Bint/Math.h>


namespace TigerTV {
Expand Down
2 changes: 1 addition & 1 deletion tests/addition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include <Bint/Bint.h>
#include <chrono>

using namespace TigerTV;
Expand Down
4 changes: 2 additions & 2 deletions tests/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>

using namespace TigerTV;

Expand Down
2 changes: 1 addition & 1 deletion tests/bits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <vector>
#include "../Bint.h"
#include <Bint/Bint.h>

using namespace TigerTV;

Expand Down
2 changes: 1 addition & 1 deletion tests/comparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include <Bint/Bint.h>
#include <chrono>

using namespace TigerTV;
Expand Down
2 changes: 1 addition & 1 deletion tests/division.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include <Bint/Bint.h>
#include <chrono>

using namespace TigerTV;
Expand Down
4 changes: 2 additions & 2 deletions tests/factorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>
#include <chrono>

using namespace TigerTV;
Expand Down
4 changes: 2 additions & 2 deletions tests/fibonnaci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <vector>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>

using namespace TigerTV;

Expand Down
4 changes: 2 additions & 2 deletions tests/gcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <vector>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>

using namespace TigerTV;

Expand Down
4 changes: 2 additions & 2 deletions tests/lcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <vector>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>

using namespace TigerTV;

Expand Down
4 changes: 2 additions & 2 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>
#include <chrono>

using namespace TigerTV;
Expand Down
4 changes: 2 additions & 2 deletions tests/pows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <string>
#include <cassert>
#include <vector>
#include "../Bint.h"
#include "../Math.h"
#include <Bint/Bint.h>
#include <Bint/Math.h>

using namespace TigerTV;

Expand Down
2 changes: 1 addition & 1 deletion tests/product.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include <Bint/Bint.h>
#include <chrono>

using namespace TigerTV;
Expand Down
2 changes: 1 addition & 1 deletion tests/shifts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include <Bint/Bint.h>
#include <chrono>

using namespace TigerTV;
Expand Down
3 changes: 1 addition & 2 deletions tests/subtract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#include <string>
#include <cassert>
#include <map>
#include "../Bint.h"
#include "../Math.h"
#include "Bint/Bint.h"
#include <chrono>

using namespace TigerTV;
Expand Down

0 comments on commit 18c681b

Please sign in to comment.