Skip to content

Commit 97b8faf

Browse files
committed
Add install info
1 parent cb88f12 commit 97b8faf

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ jobs:
2020
- name: Build
2121
working_directory: build
2222
run: cmake --build . --config ${{matrix.mode}} --parallel
23+
- name: Install
24+
working_directory: build
25+
run: cmake --install . --config ${{matrix.mode}} --prefix ${{runner.temp}}/install
2326
- name: Run tests
24-
run: build/tests/${{matrix.config}}/test.exe
27+
working-directory: ${{runner.temp}}/install
28+
run: test.exe

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function(add_cppremapper_executable TARGET)
2626
"$<TARGET_RUNTIME_DLLS:${TARGET}>"
2727
"$<TARGET_FILE_DIR:${TARGET}>"
2828
)
29+
install(TARGETS "${TARGET}")
2930
endfunction()
3031

3132
add_subdirectory(third-party)

lib/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ target_include_directories(
4747
PUBLIC
4848
"${CMAKE_CURRENT_SOURCE_DIR}"
4949
)
50+
install(TARGETS LibCppRemapper)

third-party/vjoy.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ target_include_directories(
3232
INTERFACE
3333
"${fcvjoysdk_SOURCE_DIR}/inc"
3434
)
35+
36+
install(IMPORTED_RUNTIME_ARTIFACTS ThirdParty-VJoy)

0 commit comments

Comments
 (0)