Skip to content

Commit

Permalink
using pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
hvanruys committed Nov 28, 2022
1 parent da53a31 commit ed0ef42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ set(CMAKE_AUTOUIC ON)

find_package(PkgConfig REQUIRED)
pkg_check_modules(NETCDF REQUIRED netcdf)
pkg_check_modules(HDF5 REQUIRED hdf5)

find_package(Qt5 REQUIRED Core Gui Widgets Xml Concurrent Network PrintSupport)

Expand All @@ -110,4 +111,4 @@ target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
add_definitions(-DHDF5_DISABLE_VERSION_CHECK=1 -DOPENGL30)
# sequence of libraries is important !
target_link_libraries(${PROJECT_NAME} z pthread Qt5::Widgets Qt5::Gui Qt5::Core Qt5::Widgets Qt5::Xml Qt5::Concurrent Qt5::Network Qt5::PrintSupport
my_compiler_flags_1 meteosatlib QSgp4 bz2 JPEG T4 WT DISE COMP ${NETCDF_LINK_LIBRARIES} archive freeimage)
my_compiler_flags_1 meteosatlib QSgp4 bz2 JPEG T4 WT DISE COMP ${HDF5_LINK_LIBRARIES} ${NETCDF_LINK_LIBRARIES} archive freeimage)
2 changes: 1 addition & 1 deletion video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/meteosatl

# sequence of libraries is important !
target_link_libraries(${PROJECT_NAME} z pthread Qt5::Widgets Qt5::Gui Qt5::Core Qt5::Widgets Qt5::Xml Qt5::Concurrent Qt5::Network Qt5::PrintSupport
my_compiler_flags_1 meteosatlib QSgp4 bz2 JPEG T4 WT DISE COMP ${NETCDF_LINK_LIBRARIES} netcdf archive freeimage)
my_compiler_flags_1 meteosatlib QSgp4 bz2 JPEG T4 WT DISE COMP ${HDF5_LINK_LIBRARIES} ${NETCDF_LINK_LIBRARIES} netcdf archive freeimage)

0 comments on commit ed0ef42

Please sign in to comment.