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

Cmake #535

Closed
wants to merge 23 commits into from
Closed

Cmake #535

Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
14a393a
Add repeat fit mode to image decorator (#493)
viseztrance Aug 7, 2023
69479d6
Update Tracy dependency for compatibility with v0.9
mikke89 Aug 20, 2023
eb1d6ee
Add flexbox chat benchmark (see #498)
mikke89 Aug 20, 2023
cda1db7
Update readme.md gallery
mikke89 Aug 23, 2023
a9bb4ac
Fix usage of data variables in selected `option`s (#510)
Dakror Sep 17, 2023
131a963
Transforms: Disallow percentages in perspective and translateZ
mikke89 Sep 22, 2023
6cbf961
Minor layout details cleanup
mikke89 Sep 22, 2023
a123c9d
Set CMake minimum version to 3.5
mikke89 Sep 22, 2023
eeb380a
Make the unit tests runnable with RTTI disabled
mikke89 Sep 22, 2023
70d0d5e
Add rmlui_static_cast to assert validity of down casts, see #514
mikke89 Sep 22, 2023
a602da2
Update comments in ElementDocument::Show based on #515
mikke89 Sep 26, 2023
1607e10
Readme: Fix outdated link
mikke89 Oct 1, 2023
4c6597a
Samples: Make input text fields left-aligned
mikke89 Oct 3, 2023
2ec97da
Fix shrink-to-fit width in cases with 'box-sizing: border-box'
mikke89 Oct 11, 2023
ee2986e
Visual tests: Make search box text left-aligned again
mikke89 Oct 11, 2023
8a94ab7
Make flex containers and tables with fixed width work in shrink-to-fi…
mikke89 Oct 11, 2023
3b75dca
Update tracy integration, allow parent projects to include RmlUi prof…
mikke89 Sep 30, 2023
f43ee36
Merge pull request #518 from mikke89/tracy
mikke89 Oct 11, 2023
836e6c4
GLFW backends: Properly convert mouse position to pixel coordinates, …
mikke89 Oct 16, 2023
61606db
GLFW backend: Fix mouse position scaling ratio, see #521
mikke89 Oct 17, 2023
1d9b651
GL3 backend: Set forward compatibility flag to fix running on macOS (…
NaLiJa Oct 18, 2023
d3876e6
CMake: Small fixes for macOS build (#525)
NaLiJa Oct 21, 2023
25d242b
Minimal changes to get the demos working on macos (not deployable tho…
Nov 9, 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
Prev Previous commit
Next Next commit
Make the unit tests runnable with RTTI disabled
mikke89 committed Sep 22, 2023
commit eeb380ae5b29111d2ed33a847456530ce7bd8640
19 changes: 7 additions & 12 deletions Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -23,6 +23,13 @@ include_dependency("nanobench")
include_dependency("lodepng")
include_dependency("trompeloeil")

if(MSVC)
target_compile_definitions(doctest::doctest INTERFACE DOCTEST_CONFIG_USE_STD_HEADERS)
endif()
if(DISABLE_RTTI_AND_EXCEPTIONS)
target_compile_definitions(doctest::doctest INTERFACE DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS)
endif()

#===================================
# Common source files ==============
#===================================
@@ -41,10 +48,6 @@ add_executable(UnitTests ${UnitTests_HDR_FILES} ${UnitTests_SRC_FILES})
target_link_libraries(UnitTests RmlCore RmlDebugger doctest::doctest trompeloeil::trompeloeil ${sample_LIBRARIES})
add_common_target_options(UnitTests)

if(MSVC)
target_compile_definitions(UnitTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
endif()

doctest_discover_tests(UnitTests)


@@ -75,10 +78,6 @@ if(VISUAL_TESTS_CAPTURE_DIRECTORY)
target_compile_definitions(VisualTests PRIVATE RMLUI_VISUAL_TESTS_CAPTURE_DIRECTORY="${VISUAL_TESTS_CAPTURE_DIRECTORY}")
endif()

if(MSVC)
target_compile_definitions(VisualTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
endif()



#===================================
@@ -92,10 +91,6 @@ add_executable(Benchmarks ${Benchmarks_HDR_FILES} ${Benchmarks_SRC_FILES} ${Test
target_link_libraries(Benchmarks RmlCore RmlDebugger doctest::doctest nanobench::nanobench ${sample_LIBRARIES})
add_common_target_options(Benchmarks)

if(MSVC)
target_compile_definitions(Benchmarks PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
endif()



#===================================