diff options
| author | 2022-04-17 22:09:08 +0200 | |
|---|---|---|
| committer | 2022-04-17 22:09:08 +0200 | |
| commit | ec0c511a343d79d2f1958c74f28416a1185b9487 (patch) | |
| tree | 7e8882f1a85e084ea3291a4741be03273b09d616 | |
| parent | 0faec227b3ceb69225c59b1fc0d1da53de848ce5 (diff) | |
| download | OneRoll-ec0c511a343d79d2f1958c74f28416a1185b9487.tar.gz OneRoll-ec0c511a343d79d2f1958c74f28416a1185b9487.zip | |
Install binaries and headers.
| -rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ff96097..61b1ce8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,14 +114,14 @@ endif() include(GNUInstallDirs) + +configure_file(diceparser.pc.in diceparser.pc @ONLY) + install(TARGETS diceparser_shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - -configure_file(diceparser.pc.in diceparser.pc @ONLY) - -install(FILES ${CMAKE_BINARY_DIR}/diceparser.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/diceparser.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig) if(Qt${QT_VERSION_MAJOR}Qml_FOUND) set(dice_header_qobject include/diceparser_qobject/diceparser_qobject_global.h include/diceparser_qobject/qmltypesregister.h include/diceparser_qobject/diceroller.h) @@ -140,4 +140,12 @@ if(Qt${QT_VERSION_MAJOR}Qml_FOUND) PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) + + + install(TARGETS diceparser_qobject + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) endif() + + + |