Commit 5d30e8dc authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update find generator

parent bdcbb492
Pipeline #126239 passed with stages
in 10 minutes and 48 seconds
...@@ -104,6 +104,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr ...@@ -104,6 +104,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
set(EXTRA_INCLUDE_CMAKE "") set(EXTRA_INCLUDE_CMAKE "")
else() else()
set(EXTRA_INCLUDE_CMAKE "include(${CMAKE_MODULE_PATH}/${extraIncludeFile})") set(EXTRA_INCLUDE_CMAKE "include(${CMAKE_MODULE_PATH}/${extraIncludeFile})")
install(FILES ${extraIncludeFile} DESTINATION share/cmake)
endif() endif()
file(WRITE ${findFileName} "\n") file(WRITE ${findFileName} "\n")
...@@ -185,7 +186,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr ...@@ -185,7 +186,7 @@ function(phoenix_create_find_full projectName listIncludeFile listLibrary listPr
foreach(libraryName ${listLibrary}) foreach(libraryName ${listLibrary})
file(APPEND ${findFileName} " ${libraryName}") file(APPEND ${findFileName} " ${libraryName}")
endforeach(libraryName) endforeach(libraryName)
file(APPEND ${findFileName} " ${EXTRA_DEPENDENCIES_LIB} CACHE PATHS \"${PROJECT_NAME_UPPER} libraries and dependencies\")\n") file(APPEND ${findFileName} " ${EXTRA_DEPENDENCIES_LIB} CACHE STRING \"${PROJECT_NAME_UPPER} libraries and dependencies\")\n")
file(APPEND ${findFileName} "\tset(${PROJECT_NAME_UPPER}_FOUND \"YES\" CACHE BOOL \"${PROJECT_NAME_UPPER} progect found\")\n") file(APPEND ${findFileName} "\tset(${PROJECT_NAME_UPPER}_FOUND \"YES\" CACHE BOOL \"${PROJECT_NAME_UPPER} progect found\")\n")
file(APPEND ${findFileName} "\tlink_directories(\${${PROJECT_NAME_UPPER}_LIBRARY_DIR})\n") file(APPEND ${findFileName} "\tlink_directories(\${${PROJECT_NAME_UPPER}_LIBRARY_DIR})\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment