Skip to content

Commit

Permalink
fix pdal's CMakeLists.txt (#41002)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 14, 2021
1 parent 76b89ff commit 6daf9ef
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions src/providers/pdal/CMakeLists.txt
Expand Up @@ -95,23 +95,7 @@ set(UNTWINE_INCLUDE_DIRS
# Build

include_directories(
${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/core/editform
${CMAKE_SOURCE_DIR}/src/core/expression
${CMAKE_SOURCE_DIR}/src/core/geometry
${CMAKE_SOURCE_DIR}/src/core/metadata
${CMAKE_SOURCE_DIR}/src/core/pointcloud
${CMAKE_SOURCE_DIR}/src/core/project
${CMAKE_SOURCE_DIR}/src/core/symbology
${CMAKE_SOURCE_DIR}/src/core/vector

${CMAKE_SOURCE_DIR}/external/nlohmann

${CMAKE_SOURCE_DIR}/external/untwine/api

${CMAKE_BINARY_DIR}/src/core

${CMAKE_BINARY_DIR}/src/ui
)

include_directories(SYSTEM
Expand All @@ -130,7 +114,9 @@ target_link_libraries (untwine
target_include_directories(untwine PRIVATE ${UNTWINE_INCLUDE_DIRS})

add_library (pdalprovider MODULE ${PDAL_SRCS} ${PDAL_HDRS} ${PDAL_GUI_SRCS} ${PDAL_GUI_HDRS})

target_link_libraries (pdalprovider
qgis_core
${PDAL_LIBRARIES}
Threads::Threads
)
Expand All @@ -144,8 +130,8 @@ if (WITH_GUI)
${Qt5Network_LIBRARIES}
${Qt5Sql_LIBRARIES}
${Qt5Concurrent_LIBRARIES}
qgis_gui
)
target_link_libraries(pdalprovider qgis_gui)
add_dependencies(pdalprovider ui)
endif()

Expand All @@ -159,6 +145,7 @@ target_link_libraries (pdalprovider_a
${Qt5Network_LIBRARIES}
${Qt5Sql_LIBRARIES}
${Qt5Concurrent_LIBRARIES}
qgis_core
)

if (WITH_GUI)
Expand All @@ -171,8 +158,8 @@ if (WITH_GUI)
${Qt5Network_LIBRARIES}
${Qt5Sql_LIBRARIES}
${Qt5Concurrent_LIBRARIES}
qgis_gui
)
target_link_libraries(pdalprovider_gui_a qgis_gui)
add_dependencies(pdalprovider_gui_a ui)
endif()

Expand Down

0 comments on commit 6daf9ef

Please sign in to comment.