cmake_minimum_required(VERSION 3.5)

project(main)

include(ExternalProject)
ExternalProject_Add(fooProject
  SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo1
  CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext
)

ExternalProject_Get_Property(fooProject install_dir)
message("fooProject install_dir=${install_dir}")

ExternalProject_Add(helloProject
  SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hello
  CMAKE_ARGS -DCMAKE_MODULE_PATH=${CMAKE_BINARY_DIR}/fooProject-prefix/src/fooProject-build
)

cmake_minimum_required(VERSION 3.5)

project(main)

include(ExternalProject)
ExternalProject_Add(fooProject
  SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo1
  CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext
)

ExternalProject_Get_Property(fooProject install_dir)
ExternalProject_Get_Property(fooProject source_dir)
ExternalProject_Get_Property(fooProject binary_dir)
message("fooProject install_dir=${install_dir}")
message("fooProject source_dir=${source_dir}")
message("fooProject binary_dir=${binary_dir}")

ExternalProject_Add(helloProject
  SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hello
  CMAKE_ARGS -DCMAKE_PREFIX_PATH=${binary_dir}
)

Fix the cmake include directory
Fix the cmake include directory

Signed-off-by: Francis Giraldeau <77d47d63cdc62b1abf82e61d5db643cf34b1cc3a@gmail.com>
