-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GMP Conan 2.0 compatibilty * Fixed lint warning * Pull in changes * Remove blank line to poke CI Why do merged commits always cause a GitHub merge failure the first time they execute? Is there a race condition somewhere in the implementation? * Work around Conan 1.x limitations * Update naming of user.automake:lib-wrapper * Bump required_conan_version * Restore ordering of env capture per Spacelm's insights * Add "m" as system_libs for gmpxx component * Added blank line to re-run CI build * libm not on Windows * Removed blank line to re-run CI build * Leverage CMake ctest functionality * Fixed lint issue
- Loading branch information
1 parent
5f9985b
commit 03a899d
Showing
3 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package LANGUAGES C) | ||
|
||
enable_testing() | ||
|
||
find_package(gmp REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE gmp::libgmp) | ||
add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}) | ||
|
||
if(TEST_PIC) | ||
add_library(${PROJECT_NAME}_shared SHARED test_package.c) | ||
target_link_libraries(${PROJECT_NAME}_shared PRIVATE gmp::libgmp) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
add_executable(${PROJECT_NAME}_pic test_package.c) | ||
target_link_libraries(${PROJECT_NAME}_pic PRIVATE gmp::libgmp) | ||
add_test(NAME ${PROJECT_NAME}_pic_test COMMAND ${PROJECT_NAME}_pic) | ||
endif() | ||
|
||
if(ENABLE_CXX) | ||
enable_language(CXX) | ||
add_executable(${PROJECT_NAME}_cpp test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME}_cpp PRIVATE gmp::gmpxx) | ||
add_test(NAME ${PROJECT_NAME}_cpp_test COMMAND ${PROJECT_NAME}_cpp) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters