Changeset View
Changeset View
Standalone View
Standalone View
source/blender/datatoc/CMakeLists.txt
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if(WIN32) | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| include_directories(${PNG_INCLUDE_DIRS}) | include_directories(${PNG_INCLUDE_DIRS}) | ||||
| link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH}) | link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH}) | ||||
| add_executable(datatoc_icon ${SRC}) | add_executable(datatoc_icon ${SRC}) | ||||
| setup_platform_linker_flags(datatoc_icon) | |||||
| target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES}) | target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES}) | ||||
| # PNG library uses pow() and floow(), so seems -lm is required for proper | # PNG library uses pow() and floow(), so seems -lm is required for proper | ||||
| # working binary. | # working binary. | ||||
| if(UNIX AND NOT APPLE) | if(UNIX AND NOT APPLE) | ||||
| target_link_libraries(datatoc_icon m) | target_link_libraries(datatoc_icon m) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||