uchardet/src/tools/CMakeLists.txt
Jehan 50bc02c0ff Request C++11 standard project-wise and make it a strong requirement.
It is unneeded to do it by target, using the globale property
CMAKE_CXX_STANDARD instead. Also with CMAKE_CXX_STANDARD_REQUIRED, I
make this a strong requirement. The documentation indeed states that the
CXX_STANDARD "is treated as optional and may “decay” to a previous
standard if the requested is not available".
This means that uchardet will likely not be buildable with a compiler
with no C++11 support. But I assume this is not a common situation, and
probably we should not care about outdated compilers. I remain open to
suggestions and disagreement on the topic obviously.
2017-05-28 15:43:44 +02:00

24 lines
286 B
CMake

set(
UCHARDET_SOURCES
uchardet.cpp
)
set(UCHARDET_BINARY uchardet)
add_executable(
${UCHARDET_BINARY}
${UCHARDET_SOURCES}
)
target_link_libraries(
${UCHARDET_BINARY}
${UCHARDET_LIBRARY}
)
install(
TARGETS
${UCHARDET_BINARY}
RUNTIME DESTINATION
${CMAKE_INSTALL_BINDIR}
)