mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 08:46:40 +08:00
cmake: hardcode less
This commit is contained in:
parent
7201835c98
commit
29f18210b1
@ -73,7 +73,7 @@ set_target_properties(
|
||||
LINKER_LANGUAGE
|
||||
CXX
|
||||
OUTPUT_NAME
|
||||
uchardet
|
||||
${PACKAGE_NAME}
|
||||
VERSION
|
||||
0.0.0
|
||||
SOVERSION
|
||||
@ -87,7 +87,7 @@ if (UCHARDET_STATIC_LIBRARY)
|
||||
LINKER_LANGUAGE
|
||||
CXX
|
||||
OUTPUT_NAME
|
||||
uchardet
|
||||
${PACKAGE_NAME}
|
||||
)
|
||||
endif (UCHARDET_STATIC_LIBRARY)
|
||||
|
||||
|
||||
@ -3,19 +3,21 @@ set(
|
||||
uchardet.cpp
|
||||
)
|
||||
|
||||
set(UCHARDET_BINARY uchardet)
|
||||
|
||||
add_executable(
|
||||
uchardet
|
||||
${UCHARDET_BINARY}
|
||||
${UCHARDET_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
uchardet
|
||||
${UCHARDET_BINARY}
|
||||
${UCHARDET_LIBRARY}
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
uchardet
|
||||
${UCHARDET_BINARY}
|
||||
RUNTIME DESTINATION
|
||||
${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
@ -10,7 +10,7 @@ add_executable(
|
||||
|
||||
target_link_libraries(
|
||||
uchardet-tests
|
||||
libuchardet
|
||||
${UCHARDET_LIBRARY}
|
||||
)
|
||||
|
||||
set_target_properties(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user