added targets specification to ci cd build

This commit is contained in:
2025-09-22 02:38:25 +03:00
parent c4d10f8872
commit ce40891e37
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ jobs:
- name: Build - name: Build
shell: bash shell: bash
run: cmake --build cmake-build/build/linux-release --target all run: cmake --build cmake-build/build/linux-release --target unit_test omath
- name: Run unit_tests - name: Run unit_tests
shell: bash shell: bash
@@ -72,7 +72,7 @@ jobs:
- name: Build - name: Build
shell: bash shell: bash
run: cmake --build cmake-build/build/windows-release --target all run: cmake --build cmake-build/build/windows-release --target unit_test omath
- name: Run unit_tests.exe - name: Run unit_tests.exe
shell: bash shell: bash

View File

@@ -7,7 +7,7 @@ include(GoogleTest)
file(GLOB_RECURSE UNIT_TESTS_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") file(GLOB_RECURSE UNIT_TESTS_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
add_executable(${PROJECT_NAME} ${UNIT_TESTS_SOURCES}) add_executable(${PROJECT_NAME} ${UNIT_TESTS_SOURCES})
set_target_properties(unit_tests PROPERTIES set_target_properties((${PROJECT_NAME} PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}" ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}" LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}"