diff --git a/thanm.old/CMakeLists.txt b/thanm.old/CMakeLists.txt index 37f95737..2661a58d 100644 --- a/thanm.old/CMakeLists.txt +++ b/thanm.old/CMakeLists.txt @@ -3,5 +3,5 @@ add_executable(thanm.old thanm.h image.h ) target_link_libraries(thanm.old PRIVATE util $<$:PNG::PNG> setargv thtk_warning) -install(TARGETS thanm.old DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thanm.old) install(FILES thanm.old.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thanm/CMakeLists.txt b/thanm/CMakeLists.txt index 08d08d97..f2eadcdc 100644 --- a/thanm/CMakeLists.txt +++ b/thanm/CMakeLists.txt @@ -10,5 +10,5 @@ add_executable(thanm ) target_include_directories(thanm PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(thanm PRIVATE util $<$:PNG::PNG> math setargv thtk_warning) -install(TARGETS thanm DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thanm) install(FILES thanm.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thdat/CMakeLists.txt b/thdat/CMakeLists.txt index 48d55e95..700f68be 100644 --- a/thdat/CMakeLists.txt +++ b/thdat/CMakeLists.txt @@ -1,5 +1,5 @@ include_directories(${CMAKE_SOURCE_DIR}) add_executable(thdat thdat.c) target_link_libraries(thdat PRIVATE thtk util setargv thtk_warning $<$:OpenMP::OpenMP_C>) -install(TARGETS thdat DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thdat) install(FILES thdat.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thecl/CMakeLists.txt b/thecl/CMakeLists.txt index b9ef841c..52e7c542 100644 --- a/thecl/CMakeLists.txt +++ b/thecl/CMakeLists.txt @@ -9,5 +9,5 @@ add_executable(thecl expr.c thecl.c eclmap.c thecl06.c thecl10.c expr.h thecl.h eclmap.h) target_link_libraries(thecl PRIVATE util math setargv thtk_warning) -install(TARGETS thecl DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thecl) install(FILES thecl.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thmsg/CMakeLists.txt b/thmsg/CMakeLists.txt index f58a874c..745a8a1d 100644 --- a/thmsg/CMakeLists.txt +++ b/thmsg/CMakeLists.txt @@ -3,5 +3,5 @@ add_executable(thmsg thmsg.h ) target_link_libraries(thmsg PRIVATE util setargv thtk_warning) -install(TARGETS thmsg DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thmsg) install(FILES thmsg.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thstd/CMakeLists.txt b/thstd/CMakeLists.txt index 48b0a0f9..b02a7f80 100644 --- a/thstd/CMakeLists.txt +++ b/thstd/CMakeLists.txt @@ -3,5 +3,5 @@ add_executable(thstd thstd.h ) target_link_libraries(thstd PRIVATE util setargv thtk_warning) -install(TARGETS thstd DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(TARGETS thstd) install(FILES thstd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) diff --git a/thtk/CMakeLists.txt b/thtk/CMakeLists.txt index 99cade41..27379c47 100644 --- a/thtk/CMakeLists.txt +++ b/thtk/CMakeLists.txt @@ -31,8 +31,4 @@ if (PKG_CONFIG_FOUND) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/thtk.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) endif() -install(TARGETS thtk - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/thtk) +install(TARGETS thtk PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/thtk)