2016-10-25 22:57:46 +00:00
|
|
|
project(cm256cc)
|
|
|
|
|
2016-11-06 23:42:57 +00:00
|
|
|
if (HAS_SSSE3)
|
2019-02-03 00:52:11 +00:00
|
|
|
message(STATUS "RemoteFEC: use SSSE3 SIMD" )
|
2016-11-06 23:42:57 +00:00
|
|
|
elseif (HAS_NEON)
|
2019-02-03 00:52:11 +00:00
|
|
|
message(STATUS "RemoteFEC: use Neon SIMD" )
|
2016-10-25 22:57:46 +00:00
|
|
|
else()
|
2019-02-03 00:52:11 +00:00
|
|
|
message(STATUS "RemoteFEC: Unsupported architecture")
|
2016-10-25 22:57:46 +00:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(cm256cc_SOURCES
|
|
|
|
${LIBCM256CCSRC}/gf256.cpp
|
|
|
|
${LIBCM256CCSRC}/cm256.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(cm256cc_HEADERS
|
|
|
|
${LIBCM256CCSRC}/gf256.h
|
|
|
|
${LIBCM256CCSRC}/cm256.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBCM256CCSRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(cm256cc SHARED
|
|
|
|
${cm256cc_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS cm256cc DESTINATION lib)
|