Link math library where needed

This commit is contained in:
Jack Andersen 2017-12-30 14:56:46 -10:00
parent ce256566b3
commit f8181f7598
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,8 @@ if(NOT CMAKE_CROSSCOMPILING)
include_directories(${LIBPNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
add_executable(packbadge packbadge.c)
target_link_libraries(packbadge ${PNG_LIB} ${ZLIB_LIBRARIES})
find_library(M_LIB m)
target_link_libraries(packbadge ${PNG_LIB} ${ZLIB_LIBRARIES} ${M_LIB})
##################
# Package Export #

View File

@ -1,7 +1,8 @@
if(NOT CMAKE_CROSSCOMPILING)
include_directories(${LIBPNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
add_executable(packicons packicons.c)
target_link_libraries(packicons ${PNG_LIB} ${ZLIB_LIBRARIES})
find_library(M_LIB m)
target_link_libraries(packicons ${PNG_LIB} ${ZLIB_LIBRARIES} ${M_LIB})
##################
# Package Export #