diff options
author | Ladislav Zezula <zezula@volny.cz> | 2025-05-26 20:22:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-26 20:22:44 +0200 |
commit | 7acd704ad0800d229962c4a29b71ef66cfa0ca1c (patch) | |
tree | e98e32a49b7c0860223ce280e005a2c559f703df /test/CMakeLists.txt | |
parent | c6d89095fcdcaa83987d64040f44416bd9083f25 (diff) | |
parent | 4b38800ab7eba3db99935b5aa3d79c02395cfc95 (diff) |
Merge pull request #382 from cen1/feature/ci
CMake modernization, basic CI, release artefacts, readme
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..b646613 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.10) + +set(TEST_SRC_FILES + StormTest.cpp +) + +# Option to use the legacy hardcoded paths +option(STORMTEST_USE_OLD_PATHS "Use hardcoded OS-specific default paths for WORK_PATH_ROOT" ON) + +if(NOT STORMTEST_USE_OLD_PATHS) + set(WORK_PATH_ROOT "${CMAKE_CURRENT_BINARY_DIR}/work") + add_compile_definitions(WORK_PATH_ROOT="${WORK_PATH_ROOT}") +endif() + +find_package(ALSA REQUIRED) +add_executable(StormLib_test ${TEST_SRC_FILES}) +target_link_libraries(StormLib_test storm ${ALSA_LIBRARIES}) +install(TARGETS StormLib_test RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + +add_test(NAME StormLib_test COMMAND StormLib_test)
\ No newline at end of file |