diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-10 15:48:11 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-10 15:48:11 +0800 |
commit | 0ffa08d177f3bdf10751af5818c9fc7127486fee (patch) | |
tree | 4776ae167ec1ef62f9b56d007a0d01ae7e4ecb16 /CMakeLists.txt | |
parent | 0d802e5a97ff21c2df1e0b55ac69b41ef856fc86 (diff) |
Use GNUInstallDirs
so that we can have custom libdir, like for Android separate toolchains
or even as simple as lib64.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7ff803..eff56af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ target_link_libraries(${PROJECT_NAME} Qt5::Core icclient ) -install(TARGETS ${PROJECT_NAME} DESTINATION lib) +include(GNUInstallDirs) +install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${PROJECT_NAME}.hxx DESTINATION include) install(FILES ${HDRS} DESTINATION include/${PROJECT_NAME}) |