Skip to content

Commit b62c593

Browse files
committed
Update CMake
1 parent e8aee36 commit b62c593

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/mainline-compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build project (Release, with ${{ matrix.compiler }} compiler)
3636
run: |
3737
sudo -u ci conan install . --build=missing
38-
sudo -u ci cmake --preset conan-release
38+
sudo -u ci cmake --preset conan-release -DINSTALL_TESTS=1
3939
sudo -u ci cmake --build build/Release -j$(nproc)
4040
sudo -u ci cmake --build build/Release --target package
4141

tests/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ target_include_directories(fixtures INTERFACE ${PROJECT_SOURCE_DIR}/tests)
33
target_precompile_headers(fixtures INTERFACE fixtures.hpp gtest.hpp)
44

55
add_subdirectory(Integration)
6-
add_subdirectory(Modular)
6+
add_subdirectory(Modular)
7+
8+
if (DEFINED INSTALL_TESTS)
9+
install(
10+
TARGETS
11+
integration-tests
12+
modular-tests
13+
DESTINATION
14+
bin
15+
)
16+
endif()

tests/Integration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ add_executable(integration-tests
4141
EmulatorCore/Exceptions/Exceptions.cpp
4242
)
4343
target_link_libraries(integration-tests PUBLIC hcpu-core hcasm-core GTest::gtest GTest::gtest_main pog-hpp fixtures)
44-
target_include_directories(integration-tests PUBLIC ${PROJECT_SOURCE_DIR})
44+
target_include_directories(integration-tests PUBLIC ${PROJECT_SOURCE_DIR})

0 commit comments

Comments
 (0)