set(LIBOM_VERSION master) # or commit hash
set(LIBOM_HEADER_LOCATION ${CMAKE_HOME_DIRECTORY}/ext/include/om/om.h)
if(NOT EXISTS ${LIBOM_HEADER_LOCATION})
file(DOWNLOAD
https://raw.githubusercontent.com/olivermichel/libom2/${LIBOM_VERSION}/include/om/om.h
${LIBOM_HEADER_LOCATION})
message(STATUS "Downloading libom: /ext/include/om/om.h - done")
endif()
mkdir build && cd build
cmake ..
make
make test
requires Doxygen
mkdir build && cd build
cmake ..
make
make doc