Created
February 10, 2015 00:08
-
-
Save danpolanco/22bf1ca6307b8edcb53e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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