Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build config #3

Merged
merged 10 commits into from
Jun 16, 2023
Merged
Prev Previous commit
Misc update of cmake config
guoh27 committed Jun 4, 2023
commit 17cadf54c4af94ae3b0ec64788bfc0c324d69242
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -103,10 +103,10 @@ if(NOSHELL_ENABLE_INSTALL)

write_basic_package_version_file("${version_config_file}"
VERSION "${noshell_version}"
COMPATIBILITY AnyNewerVersion)
COMPATIBILITY ExactVersion)

install(FILES "${project_config_out}" "${version_config_file}" DESTINATION "${export_dest_dir}")
endif(NOSHELL_ENABLE_INSTALL)
endif()


if(NOSHELL_BUILD_TESTS)
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -31,6 +31,6 @@ foreach(src ${NOSHELL_TESTS_HELPER})
endforeach()

add_executable(noshell_tests ${NOSHELL_TESTS_LIST})
target_link_libraries(noshell_tests GTest::Main GTest::GTest Threads::Threads noshell)
target_link_libraries(noshell_tests GTest::Main GTest::GTest Threads::Threads noshell::noshell)

add_test(noshell_tests noshell_tests)