cmake: link with OpenLibm

Once the FxLibc gets a CMake module this will be automatic.
This commit is contained in:
Lephenixnoir 2021-05-21 10:15:09 +02:00
parent 9b7c5ae70f
commit fec8637312
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@ add_executable(fxlibctest ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}})
target_compile_options(fxlibctest PRIVATE
-Wall -Wextra -Os -fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/src/=)
target_link_options(fxlibctest PRIVATE -Wl,-Map=map -Wl,--print-memory-usage)
target_include_directories(fxlibctest PRIVATE include/)
target_link_libraries(fxlibctest JustUI::JustUI Gint::Gint -lc)
target_include_directories(fxlibctest PRIVATE
include/
"${FXSDK_COMPILER_INSTALL}/include/openlibm/")
target_link_libraries(fxlibctest JustUI::JustUI Gint::Gint -lc -lopenlibm)
foreach(FOLDER IN LISTS FXLIBC_INSTALL)
target_include_directories(fxlibctest PRIVATE "${FOLDER}/include")