Skip to content
Snippets Groups Projects
Commit f43d6b3e authored by Antoine Lorence's avatar Antoine Lorence
Browse files

[CMake] Improvements in dependency lookup

parent 52d4ebfb
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
# Detiq-T is a submodule, it is built automatically before building eiimage
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/lib/detiq-t AND IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib/detiq-t)
add_subdirectory(lib/detiq-t)
include_directories(lib/detiq-t/ImageIn lib/detiq-t/GenericInterface)
include_directories(lib/detiq-t/ImageIn lib/detiq-t/GenericInterface)
else()
message(FATAL_ERROR "The Detiq-T project should be cloned before excuting this compilation. "
"Please use 'git submodule init' and 'git submodule update' to automatically get the source "
......
......@@ -17,7 +17,12 @@ endif()
# Find Qwt, which must be built and installed before running this compilation
find_package(Qwt 6.0 REQUIRED)
include_directories(${QWT_INCLUDE_DIRS})
if(QWT_FOUND)
message(STATUS "Qwt library version ${QWT_VERSION_STRING}")
include_directories(${QWT_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Cannot find Qwt library. Please add the Qwt library directory to CMAKE_PREFIX_PATH.")
endif()
set(eiimage_SOURCES
main.cpp
......
Subproject commit 3775c10a581cc3b5b8ad1bcb173a944d7dcae2d0
Subproject commit ac875e918ae41dc00c6fede23711986ca1af8a14
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment