-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example to test import std with cmake
- Loading branch information
1 parent
13a79de
commit f5cecba
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include(ExternalProject) | ||
|
||
ExternalProject_Add( | ||
example | ||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/example | ||
#--Download step-------------- | ||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/example | ||
#--Update/Patch step---------- | ||
#--Configure step------------- | ||
USES_TERMINAL_CONFIGURE TRUE | ||
CONFIGURE_COMMAND cmake -G "${CMAKE_GENERATOR}" -S ${CMAKE_CURRENT_SOURCE_DIR}/example -B . -D CMAKE_BUILD_TYPE=$<CONFIG> | ||
#--Build step----------------- | ||
USES_TERMINAL_BUILD TRUE | ||
# BUILD_IN_SOURCE 1 | ||
BUILD_COMMAND cmake --build . -j 8 | ||
#--Install step--------------- | ||
USES_TERMINAL_INSTALL TRUE | ||
INSTALL_COMMAND ctest --verbose | ||
#--Logging ------------------- | ||
LOG_BUILD ON | ||
) |