Skip to content

Commit

Permalink
move comparison tests to dedicated cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
braxtons12 committed Sep 22, 2024
1 parent fbfc35a commit 76cc0ae
Show file tree
Hide file tree
Showing 6 changed files with 1,145 additions and 1,131 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
CC: gcc-${{matrix.version}}
CXX: g++-${{matrix.version}}
working-directory: ${{github.workspace}}
run: cmake --preset env-cc-release
run: cmake --preset env-cc-release -DHYPERION_ENABLE_TRACY=ON

- name: Build
env:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
working-directory: ${{github.workspace}}
run: |
rm -rf build
cmake --preset env-cc-release
cmake --preset env-cc-release -DHYPERION_ENABLE_TRACY=ON
- name: Build
env:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset msvc-release
run: cmake --preset msvc-release -DHYPERION_ENABLE_TRACY=ON

- name: Build
env:
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset env-cc-release
run: cmake --preset env-cc-release -DHYPERION_ENABLE_TRACY=ON

- name: Build
env:
Expand Down
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.20)
project(hyperion_platform LANGUAGES CXX VERSION 0.5.1)
project(hyperion_platform LANGUAGES CXX VERSION 0.5.2)

include(CTest)

Expand Down Expand Up @@ -104,7 +104,11 @@ hyperion_enable_warnings(hyperion_platform_main)
add_test(NAME hyperion_platform_main
COMMAND hyperion_platform_main)

add_executable(hyperion_platform_tests ${CMAKE_CURRENT_SOURCE_DIR}/src/test_main.cpp)
set(HYPERION_PLATFORM_TEST_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/test_main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/test/compare.cpp
)
add_executable(hyperion_platform_tests ${HYPERION_PLATFORM_TEST_SOURCES})
target_link_libraries(hyperion_platform_tests
PRIVATE
hyperion::platform
Expand All @@ -114,7 +118,6 @@ target_compile_definitions(
hyperion_platform_tests
PUBLIC
BOOST_UT_DISABLE_MODULE=1
HYPERION_ENABLE_TESTING=1
)

hyperion_compile_settings(hyperion_platform_tests)
Expand Down
Loading

0 comments on commit 76cc0ae

Please sign in to comment.