CMakeLists.txt (838B)
1 cmake_minimum_required(VERSION 3.12) 2 3 add_kfr_library(NAME kfr_dft MULTIARCH SOURCES ${KFR_DFT_SRC}) 4 5 function (dft_compile_options LIB) 6 if (MSVC AND CLANG) 7 target_compile_options(${LIB} PRIVATE SHELL:-Xclang -ffp-contract=fast 8 -Xclang -O3) 9 else () 10 target_compile_options(${LIB} PRIVATE -ffp-contract=fast -O3) 11 endif () 12 endfunction () 13 14 foreach (LIB IN LISTS kfr_dft_LIBS) 15 dft_compile_options(${LIB}) 16 endforeach () 17 18 if (KFR_INSTALL_LIBRARIES) 19 install( 20 TARGETS ${kfr_dft_TARGETS} 21 EXPORT kfr_export 22 ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}> 23 LIBRARY DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}> 24 RUNTIME DESTINATION bin$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>) 25 endif ()