Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
better module structure + CI scripts
- Loading branch information
Showing
11 changed files
with
230 additions
and
80 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,46 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
|
||
jobs: | ||
- job: ubuntu_16_04 | ||
displayName: 'Build - Ubuntu 16.04' | ||
continueOnError: false | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
workspace: | ||
clean: all | ||
steps: | ||
- script: | | ||
mkdir build | ||
- task: CMake@1 | ||
- script: | | ||
cmake -DOATPP_MODULES_LOCATION=EXTERNAL .. | ||
make | ||
displayName: 'CMake' | ||
workingDirectory: build | ||
- script: | | ||
make test ARGS="-V" | ||
displayName: 'Test' | ||
workingDirectory: build | ||
- job: macOS | ||
displayName: 'Build - macOS-10.13' | ||
continueOnError: false | ||
pool: | ||
vmImage: 'macOS-10.13' | ||
workspace: | ||
clean: all | ||
steps: | ||
- script: | | ||
mkdir build | ||
- task: CMake@1 | ||
- script: | | ||
cmake -DOATPP_MODULES_LOCATION=EXTERNAL .. | ||
make | ||
displayName: 'CMake' | ||
workingDirectory: build | ||
- script: | | ||
make test ARGS="-V" | ||
displayName: 'Test' | ||
workingDirectory: build |
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,9 @@ | ||
@PACKAGE_INIT@ | ||
|
||
if(NOT TARGET oatpp::oatpp) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake") | ||
endif() | ||
|
||
set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/@OATPP_MODULE_NAME@/") | ||
set_and_check(@OATPP_MODULE_NAME@_LIBRARIES_DIRS "${PACKAGE_PREFIX_DIR}/lib/@OATPP_MODULE_NAME@-@OATPP_MODULE_VERSION@/") | ||
set(@OATPP_MODULE_NAME@_LIBRARIES @OATPP_MODULE_LIBRARIES@) |
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,25 @@ | ||
macro(target_link_oatpp target) | ||
|
||
if(TARGET oatpp::oatpp) ## OATPP_MODULES_LOCATION == INSTALLED | ||
|
||
message("target_link_oatpp(${target}) to installed oatpp lib") | ||
|
||
target_link_libraries(${target} | ||
PRIVATE oatpp::oatpp | ||
PRIVATE oatpp::oatpp-test | ||
) | ||
|
||
else() | ||
|
||
message("target_link_oatpp(${target}) to found in provided path oatpp lib") | ||
|
||
target_include_directories(${target} PUBLIC $<BUILD_INTERFACE:${OATPP_DIR_SRC}>) | ||
target_link_directories(${target} PRIVATE ${OATPP_DIR_LIB}) | ||
target_link_libraries(${target} | ||
PRIVATE oatpp | ||
PRIVATE oatpp-test | ||
) | ||
|
||
endif() | ||
|
||
endmacro() |
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,15 @@ | ||
path_classifiers: | ||
generated: | ||
- exclude: "src/*" # don't tag oatpp sources as generated | ||
library: | ||
- exclude: "src/*" # don't tag oatpp sources as library | ||
template: | ||
- exclude: "src/*" # don't tag oatpp sources as template | ||
test: | ||
- exclude: "src/*" # don't tag oatpp sources as test | ||
- test # tag test folder only as test | ||
docs: | ||
- README.md | ||
- LICENSE.txt | ||
extraction: | ||
cpp: |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.