{"id":13712264,"url":"https://github.com/biospine/ScienceMode4_c_library_cmake","last_synced_at":"2025-05-06T21:33:37.952Z","repository":{"id":226149113,"uuid":"746982037","full_name":"biospine/ScienceMode4_c_library_cmake","owner":"biospine","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T03:46:50.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-13T22:35:35.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biospine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-23T02:46:53.000Z","updated_at":"2024-03-06T03:48:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"507d3274-afd1-46ad-89fe-b2fec0fc4606","html_url":"https://github.com/biospine/ScienceMode4_c_library_cmake","commit_stats":null,"previous_names":["biospine/sciencemode4_c_library_cmake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biospine%2FScienceMode4_c_library_cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biospine%2FScienceMode4_c_library_cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biospine%2FScienceMode4_c_library_cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biospine%2FScienceMode4_c_library_cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biospine","download_url":"https://codeload.github.com/biospine/ScienceMode4_c_library_cmake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252772447,"owners_count":21801927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:01:16.543Z","updated_at":"2025-05-06T21:33:37.678Z","avatar_url":"https://github.com/biospine.png","language":"CMake","readme":"# ScienceMode4_c_library_cmake\n`ScienceMode4_c_library_cmake` is a wrapping around the [original C library of the ScienceMode 4 protocol](https://github.com/ScienceMode/ScienceMode4_c_library) so it may be build using CMake instead of qmake. This repository was created to avoid using Qt if a super project uses CMake. It is not the most elegant solution and likely has different compiler flags to the original project.\n### Build and compile project\n```powershell\ngit clone --recurse-submodules https://github.com/biospine/ScienceMode4_c_library_cmake\nmkdir build\ncd build\ncmake -G \"Visual Studio 16 2019\" -A x64 -DCMAKE_BUILD_TYPE=Release ..\ncmake --build . --config Release\n```\n\n### Run unit tests (broken for now)\n```powershell\ncd build\nctest -C Release\n```\n\n## Install\nUse component '--component smpt-library' if there are other components (e.g., from future submodules) you don't want installed.\n```powershell\ncmake --install . --prefix=\"..\\install\"\n```\nThen make sure CMake can find it.\nThe following PATH method works using powershell on Windows platforms. There are [many](https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure) other way to let CMake find the package.\n```\ncd path_to_ScienceMode4_c_library_cmake\n$smpt_path = \";\" + $PWD + \"\\install\"\n$env:Path = [System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\")\n[Environment]::SetEnvironmentVariable(\"PATH\", $env:PATH + $smpt_path, [EnvironmentVariableTarget]::Machine)\n```\n\n## How to use in another CMake project (i.e., link against)\n\n```CMake\n...\n\nfind_package(ScienceModeProtocol REQUIRED PATHS path_to_ScienceModeProtocol/install)\n...\n\ntarget_link_libraries(new_exe ScienceModeProtocol::sciencemode_protocol)\n\n# Depending on install and linking methods used.\nget_target_property(LIBB_LOCATION ScienceModeProtocol::sciencemode_protocol IMPORTED_LOCATION_RELEASE)\ninstall(FILES\n  ${LIBB_LOCATION}\n  DESTINATION bin\n)\n```","funding_links":[],"categories":["ScienceMode4"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiospine%2FScienceMode4_c_library_cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiospine%2FScienceMode4_c_library_cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiospine%2FScienceMode4_c_library_cmake/lists"}