Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share existing content as both SHARED and STATIC libraries #24

Draft
wants to merge 22 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
da1113f
Adding library and export option
andreimesquita Aug 3, 2020
9548665
Using pragma once in header files
andreimesquita Aug 17, 2020
3a01849
Implementing simple methods in the export API (working example)
andreimesquita Nov 29, 2020
dcfda3a
Merge remote-tracking branch 'origin/development' into feature/multil…
andreimesquita Nov 29, 2020
17eb885
Adding forgotten spacings
andreimesquita Nov 29, 2020
dea4214
Creating a MathLibrary to be used as an example when exporting shared…
andreimesquita Jan 24, 2022
3a3a746
Updating LIBRARY_OUTPUT_PATH to be in UPPERCASE
andreimesquita Feb 4, 2022
0bb268f
Enhancing code structure
andreimesquita Feb 7, 2022
bc971e8
Merge remote-tracking branch 'origin/development' into feature/export…
andreimesquita Feb 8, 2022
9fca7b5
Fixing DLL exporting on Unix platforms
andreimesquita Feb 8, 2022
0d4d907
Fixing warning due to invalid formatting parameter when using size_t …
andreimesquita Feb 8, 2022
f3ebe75
Renaming some TestMain files
andreimesquita Feb 8, 2022
77e91a5
Removing Equals(vector, vector) function
andreimesquita Feb 8, 2022
ec476e4
Integrating c++11 random library into RandomUtils
andreimesquita Feb 8, 2022
bbb904e
Returning CMakeLists to its default state
andreimesquita Feb 8, 2022
5abfcc8
Updating files to follow our code standards
andreimesquita Aug 28, 2023
da12d92
Organizing gitignore contents
andreimesquita Aug 28, 2023
f80703d
Adding line breaks into README file
andreimesquita Aug 28, 2023
c3e8b7f
Adding line breaks into CMakeLists.txt
andreimesquita Aug 28, 2023
59420c6
Adding line breaks into cmake job file
andreimesquita Aug 28, 2023
c34e46c
Refactoring all project source code in order to apply our code standa…
andreimesquita Aug 28, 2023
42bd69b
Creating tests for using the static library from MathLibrary
andreimesquita Aug 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: CMake

on:
push:
branches: [ development ]
pull_request:
branches: [ development ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

name: CMake
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
21 changes: 11 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
*.DS_Store
cmake-build-debug
cmake-build-release
AdversarialSearch/Minimax/Main
AdversarialSearch/Minimax/Main.dSYM/
build
*.asta
*.asta.lock
*.jude
*.idea
*.DS_Store
cmake-build-debug
cmake-build-release
AdversarialSearch/Minimax/Main
AdversarialSearch/Minimax/Main.dSYM/
build
*.asta
*.asta.lock
*.jude
*.idea
cmake-build-release
24 changes: 0 additions & 24 deletions AdversarialSearch/Minimax/Main.cpp

This file was deleted.

37 changes: 0 additions & 37 deletions AdversarialSearch/Minimax/MinimaxTester.h

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(FILES
TicTacToeMinimax.cpp
MinimaxTester.cpp
Main.cpp
)
add_executable(Minimax ${FILES})
set(FILES
../TicTacToeMinimax.cpp
MinimaxTester.cpp
MinimaxTestMain.cpp
)
add_executable(Minimax ${FILES})
16 changes: 16 additions & 0 deletions AdversarialSearch/Minimax/Tests/MinimaxTestMain.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "MinimaxTester.h"

int main(int argc, char *argv[])
{
if (argc > 1)
{
int boardState = atoi(argv[1]);
TicTacToeMinimax::BenchmarkMinimax(boardState, true);
}
else
{
TicTacToeMinimax::RunMinimaxTests();
TicTacToeMinimax::BenchmarkMinimaxVsMinimax(0, true);
}
return 0;
}
Loading