mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-31 22:21:13 +02:00
build all dll and executable at bin directory
This commit is contained in:
parent
78b430b172
commit
56a3c22ad9
10 changed files with 33 additions and 16 deletions
3
.github/workflows/install.yml
vendored
3
.github/workflows/install.yml
vendored
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
name: Install
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
|
|
3
.github/workflows/macos.yml
vendored
3
.github/workflows/macos.yml
vendored
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
name: MacOS
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
|
|
3
.github/workflows/standalone.yml
vendored
3
.github/workflows/standalone.yml
vendored
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
name: Standalone
|
||||
|
||||
on:
|
||||
|
@ -30,4 +31,4 @@ jobs:
|
|||
run: cmake --build build -j4
|
||||
|
||||
- name: run
|
||||
run: ./build/Greeter
|
||||
run: ./build/bin/Greeter
|
||||
|
|
3
.github/workflows/style.yml
vendored
3
.github/workflows/style.yml
vendored
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
name: Style
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
|
|
3
.github/workflows/ubuntu.yml
vendored
3
.github/workflows/ubuntu.yml
vendored
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
name: Ubuntu
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
|
|
7
.github/workflows/windows.yml
vendored
7
.github/workflows/windows.yml
vendored
|
@ -4,9 +4,11 @@ name: Windows
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
|
||||
env:
|
||||
|
@ -34,8 +36,5 @@ jobs:
|
|||
- name: test
|
||||
run: |
|
||||
cd build
|
||||
tree bin\Debug
|
||||
tree x64\Debug
|
||||
dir Debug
|
||||
Debug/GreeterTests.exe -s
|
||||
tree
|
||||
ctest --build-config Debug --verbose
|
||||
|
|
|
@ -20,9 +20,10 @@ endif()
|
|||
|
||||
# ---- Project settings ----
|
||||
|
||||
# XXX if(NOT MSVC)
|
||||
option(BUILD_SHARED_LIBS "Create shared libraries if ON" YES)
|
||||
# XXX endif()
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
|
||||
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
|
|
@ -6,7 +6,7 @@ ROOT?=${CURDIR}/stagedir
|
|||
GENERATOR?=Ninja
|
||||
|
||||
#XXX export CXX=clang++
|
||||
export CPM_USE_LOCAL_PACKAGES=1
|
||||
export CPM_USE_LOCAL_PACKAGES=0
|
||||
export CPM_SOURCE_CACHE=${HOME}/.cache/CPM
|
||||
|
||||
.PHONY: update format all test standalone doc check clean distclean lock
|
||||
|
|
|
@ -9,6 +9,10 @@ endif()
|
|||
include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
|
||||
CPMUsePackageLock(package-lock.cmake)
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
|
||||
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
|
|
@ -61,7 +61,7 @@ endif()
|
|||
|
||||
enable_testing()
|
||||
|
||||
add_test(greeterTests GreeterTests)
|
||||
add_test(NAME greeterTests COMMAND GreeterTests)
|
||||
|
||||
# ---- code coverage ----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue