Skip to content

Commit

Permalink
fix cmake file (#179, #174)
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-tokes committed Jan 24, 2025
1 parent 4fb891d commit a8b6fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ set(LIBRARY_TARGET_NAME ${PROJECT_NAME})

message(USING Qt${QT_VERSION_MAJOR})

set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH $ORIGIN)

add_subdirectory(src)

if (BUILD_TESTS)
Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ target_link_libraries(${LIBRARY_TARGET_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Network)

set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH $ORIGIN)

target_include_directories(${LIBRARY_TARGET_NAME}
PRIVATE
# where the library itself will look for its internal headers
Expand Down

0 comments on commit a8b6fbb

Please sign in to comment.