Skip to content

Commit

Permalink
Add downstream tests to make sure version is usable
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 8, 2024
1 parent cff6168 commit 1776700
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/downstream-project-cmake-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@ project(DownstreamProjectUsingk4FWCore)

find_package(k4FWCore)

if (NOT DEFINED ${k4FWCore_VERSION})
message(FATAL_ERROR "CAnnot find k4FWCore version information")
endif()

if (NOT ${k4FWCore_VERSION} MATCHES "^[0-9]+\\.[0-9+](\\.[0-9]+)?$")
message(FATEL_ERROR "Exported k4FWCore version cannot be used as a version: " ${k4FWCore_VERSION})
endif()

add_executable(appUsingk4FWCore main.cxx)
target_link_libraries(appUsingk4FWCore k4FWCore::k4FWCore)

0 comments on commit 1776700

Please sign in to comment.