This is an initial pass, simply moving the existing logic as-is. Future PR's will attempt to refactor and improve the cmake stuff.
11 lines
377 B
CMake
11 lines
377 B
CMake
macro(SetLibraryVersions)
|
|
# version information of libraries
|
|
#
|
|
if(OCC_INCLUDE_DIR AND EXISTS ${OCC_INCLUDE_DIR}/Standard_Version.hxx)
|
|
set(HAVE_OCC_VERSION 1)
|
|
endif(OCC_INCLUDE_DIR AND EXISTS ${OCC_INCLUDE_DIR}/Standard_Version.hxx)
|
|
|
|
configure_file(LibraryVersions.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/LibraryVersions.h)
|
|
|
|
endmacro(SetLibraryVersions)
|