-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-friendly configuration. Bootstrap script
- Loading branch information
1 parent
fdaf2c9
commit ea977c8
Showing
13 changed files
with
209 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
if(NOT SIPLASPLAS_ROOT) | ||
if(SIPLASPLAS_PACKAGE_URL) | ||
set(SIPLASPLAS_PACKAGE "${CMAKE_BINARY_DIR}/siplasplas_package") | ||
file(DOWNLOAD "${SIPLASPLAS_PACKAGE_URL}" "${SIPLASPLAS_PACKAGE}" SHOW_PROGRESS) | ||
endif() | ||
|
||
if(NOT SIPLASPLAS_PACKAGE OR NOT EXISTS "${SIPLASPLAS_PACKAGE}") | ||
message(FATAL_ERROR "No siplasplas package found") | ||
endif() | ||
|
||
get_filename_component(SIPLASPLAS_PACKAGE_NAME "${SIPLASPLAS_PACKAGE}" NAME_WE) | ||
|
||
if(NOT EXISTS "${SIPLASPLAS_PACKAGE_NAME}") | ||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xvf "${SIPLASPLAS_PACKAGE}" | ||
) | ||
endif() | ||
|
||
set(SIPLASPLAS_ROOT "${CMAKE_BINARY_DIR}/${SIPLASPLAS_PACKAGE_NAME}" CACHE INTERNAL "") | ||
endif() | ||
|
||
if(EXISTS "${SIPLASPLAS_ROOT}") | ||
list(APPEND CMAKE_MODULE_PATH "${SIPLASPLAS_ROOT}/cmake") | ||
include(siplasplas) | ||
else() | ||
message(FATAL_ERROR "The siplasplas root directory (${SIPLASPLAS_ROOT}) does not exist") | ||
endif() |
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,11 @@ | ||
install( | ||
FILES | ||
utils.cmake | ||
libclang.cmake | ||
pip.cmake | ||
FindLibClang.cmake | ||
FindPythonPip.cmake | ||
siplasplas.cmake | ||
DESTINATION | ||
cmake/ | ||
) |
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
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,22 @@ | ||
if(NOT SIPLASPLAS_ROOT) | ||
message(FATAL_ERROR "siplasplas installation not found. Use SIPLASPLAS_ROOT variable to specify the path to your siplasplas installation") | ||
endif() | ||
|
||
set(SIPLAPLAS_LIB_DIR "${SIPLASPLAS_ROOT}/lib" CACHE INTERNAL "") | ||
set(SIPLASPLAS_CMAKE_DIR "${SIPLASPLAS_ROOT}/cmake" CACHE INTERNAL "") | ||
set(SIPLASPLAS_BIN_DIR "${SIPLASPLAS_ROOT}/bin" CACHE INTERNAL "") | ||
set(SIPLASPLAS_INCLUDE_DIR "${SIPLASPLAS_ROOT}/include" CACHE INTERNAL "") | ||
|
||
if(NOT SIPLASPLAS_DRLPARSER_PYTHON_VERSION) | ||
set(SIPLASPLAS_DRLPARSER_PYTHON_VERSION 2.7) | ||
endif() | ||
|
||
if(SIPLASPLAS_BUILDING_FROM_SOURCES) | ||
set(SIPLASPLAS_DRLPARSER_DIR "${CMAKE_SOURCE_DIR}/src/reflection/parser") | ||
else() | ||
set(SIPLASPLAS_DRLPARSER_DIR "${SIPLASPLAS_BIN_DIR}/reflection-parser/parser" CACHE INTERNAL "") | ||
endif() | ||
list(APPEND CMAKE_MODULE_PATH "${SIPLASPLAS_CMAKE_DIR}" "${SIPLASPLAS_DRLPARSER_DIR}") | ||
|
||
include(utils) | ||
include(drlparser) |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# Returns the relative path of the | ||
# current source dir against the source | ||
# tree root. | ||
|
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
Oops, something went wrong.