Skip to content

Commit

Permalink
Adding math lib
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Jan 4, 2023
1 parent e7b3b13 commit af6e596
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ include(GNUInstallDirs)

add_library(xor_singleheader INTERFACE)
add_library(xor_singleheader::xor_singleheader ALIAS xor_singleheader)

find_library(MATH_LIBRARY m)
if(MATH_LIBRARY)
target_link_libraries(xor_singleheader INTERFACE ${MATH_LIBRARY})
endif()

target_include_directories(
xor_singleheader
INTERFACE
Expand Down

0 comments on commit af6e596

Please sign in to comment.