Revision 24d2dc18e53205337a4bb9bc2dd1f9faa17798e3 authored by Lionel Muller on 07 October 2011, 09:58:47 UTC, committed by Lionel Muller on 07 October 2011, 09:58:47 UTC
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/cado-nfs/trunk@957 3eaf19af-ecc0-40f6-b43f-672aa0c71c71
1 parent 171f670
Raw File
CMakeLists.txt

set (sources 
        cado_poly.c relation.c timing.c plain_poly.c getprime.c mod_ul.c
        modredc_ul.c modredc_15ul.c modredc_2ul2.c modul_poly.c gmp_aux.c
        mpz_poly.c fpoly.c rootfinder.c params.c gcd_int64.c gcd_uint64.c
        discriminant.c random_generation.c mpz_array.c gzip.c misc.c
        hashpair.c poly.c crc.c purgedfile.c bit_vector.c
        barrier.c usp.c fix-endianness.c cut_n_roots.c 
)

# the utils library is used by some shared objects (prominently the
# matmul shared libs in bwc), and therefore must be shared.
add_library (utils SHARED ${sources})
target_link_libraries(utils gmp m ${pthread_libs})
install(TARGETS utils DESTINATION lib/${package_basename})

add_executable(check_rels check_rels.c)
target_link_libraries(check_rels utils)

add_executable(complete_rels ${EXCLUDE_FROM_RELEASE_BUILD} complete_rels.c)
target_link_libraries(complete_rels utils)

add_executable(cut_n_roots cut_n_roots.c)
target_link_libraries(cut_n_roots utils)
add_executable(roots roots.c)
target_link_libraries(roots utils)

add_executable(test_mod_ul ${EXCLUDE_FROM_RELEASE_BUILD} test_mod_ul.c)
add_executable(test_modredc_ul ${EXCLUDE_FROM_RELEASE_BUILD} test_modredc_ul.c)
add_executable(test_modredc_15ul ${EXCLUDE_FROM_RELEASE_BUILD} test_modredc_15ul.c)
add_executable(test_modredc_2ul2 ${EXCLUDE_FROM_RELEASE_BUILD} test_modredc_2ul2.c)
add_executable(gmp_prob_prime gmp_prob_prime.c)
add_executable(gmp_nextprime gmp_nextprime.c)

target_link_libraries(test_mod_ul utils)
target_link_libraries(test_modredc_ul utils)
target_link_libraries(test_modredc_15ul utils)
target_link_libraries(test_modredc_2ul2 utils)
target_link_libraries(gmp_prob_prime gmp)
target_link_libraries(gmp_nextprime gmp)

include(CMakeLists-nodist.txt OPTIONAL)

install(TARGETS check_rels gmp_prob_prime RUNTIME DESTINATION bin/utils)
install(TARGETS cut_n_roots roots gmp_nextprime RUNTIME DESTINATION bin/utils)
back to top