Skip to content

Commit

Permalink
Expose compile options to test harness CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Nov 17, 2023
1 parent d3ce8fa commit eab2c48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
DEPENDENCIES ${CMAKE_PROJECT_NAME})
ENDIF()

IF(TE_FLOAT)
ADD_DEFINITIONS(-DTE_FLOAT)
ENDIF(TE_FLOAT)
IF(TE_POW_FROM_RIGHT)
ADD_DEFINITIONS(-DTE_POW_FROM_RIGHT)
ENDIF(TE_POW_FROM_RIGHT)

# place Catch2 at the same folder level as this repo if it isn't installed
# (you will need to do this on Windows or macOS or if version 3 of Catch2 isn't installed)
GET_FILENAME_COMPONENT(_fullpath "${_dir}" REALPATH)
Expand Down

0 comments on commit eab2c48

Please sign in to comment.