Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (NOT INSTALLING)
set (WORKING DIRECTORY "${CMAKECURRENTBINARYDIR}/Install")
file (MAKEDIRECTORY "${DIRECTORY}")
executeprocess (COMMAND "${CMAKECOMMAND}"
-DINSTALLING=TRUE
-DINSTALLPREFIX=${MYINSTALLPREFIX} "${CMAKECURRENTSOURCEDIR}"
WORKING_DIRECTORY "${DIRECTORY}"
)
executeprocess (COMMAND "${CMAKECOMMAND}"
--build .
--config Release WORKING_DIRECTORY "${DIRECTORY}"
)
else (NOT INSTALLING)
project ("")
include (ExternalProject)
ExternalProjectAdd (externalproject GITREPOSITORY "<gitrepourl>"
INSTALLDIR "${INSTALLPREFIX}"
CMAKEARGS -DCMAKEINSTALLPREFIX:PATH=
)
endif (NOT INSTALLING)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment