cmake: hardcode less

This commit is contained in:
Ilya Tumaykin 2016-03-21 21:13:51 +03:00
parent 7201835c98
commit 29f18210b1
No known key found for this signature in database
GPG Key ID: FCF6A8810E836D1C
3 changed files with 8 additions and 6 deletions

View File

@ -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)

View File

@ -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}
)

View File

@ -10,7 +10,7 @@ add_executable(
target_link_libraries(
uchardet-tests
libuchardet
${UCHARDET_LIBRARY}
)
set_target_properties(