Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Path: gap4r8 / pkg / NormalizInterface-1.0.2 / Normaliz.git / Qsource / libQnormaliz / CMakeLists.txt
Views: 418386# libQnormaliz source files1SET(sources Qcone_property.cpp libQnormaliz-templated.cpp Qcone_helper.cpp)2# libnormaliz header files3SET(headers Qcone.h Qcone_property.h Qconvert.h Qgeneral.h Qinteger.h libQnormaliz.h Qmap_operations.h Qmatrix.h Qmy_omp.h Qnormaliz_exception.h Qsublattice_representation.h Qvector_operations.h Qversion.h)45# add the necessary include directories6INCLUDE_DIRECTORIES(..)7FIND_PACKAGE(Boost REQUIRED)8#IF (Boost_FOUND)9# MESSAGE(STATUS "Boost found with include dir: ${Boost_INCLUDE_DIR}")10#ENDIF()11INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})1213SET (QNMZ_BUILD_BOTH "NO" CACHE BOOL "build shared AND static libQnormaliz")1415IF (QNMZ_BUILD_BOTH OR NOT QNMZ_BUILD_STATIC)16# create the shared library17ADD_LIBRARY(Qnormaliz-shared SHARED ${sources})18SET_TARGET_PROPERTIES(Qnormaliz-shared PROPERTIES OUTPUT_NAME Qnormaliz VERSION ${VERSION} SOVERSION 0)19# set the dependency on gmp20TARGET_LINK_LIBRARIES (Qnormaliz-shared ${GMPXX_LIBRARIES} ${GMP_LIBRARIES})21INSTALL(TARGETS Qnormaliz-shared22ARCHIVE DESTINATION lib23LIBRARY DESTINATION lib${LIB_SUFFIX}24RUNTIME DESTINATION bin25COMPONENT sharedlibs26)27ENDIF ()2829IF (QNMZ_BUILD_BOTH OR QNMZ_BUILD_STATIC)30#create the static library31ADD_LIBRARY(Qnormaliz-static STATIC ${sources})32SET_TARGET_PROPERTIES(Qnormaliz-static PROPERTIES OUTPUT_NAME Qnormaliz VERSION ${VERSION} SOVERSION 0)33INSTALL(TARGETS Qnormaliz-static ARCHIVE DESTINATION lib${LIB_SUFFIX})34ENDIF ()3536INSTALL(FILES ${headers} DESTINATION include/${PROJECT_NAME} COMPONENT headers)3738SET(LIBQNORMALIZ_INCLUDE_DIR ${includedir})39SET(LIBQNORMALIZ_INCLUDE_DIRS ${LIBQNORMALIZ_INCLUDE_DIR})40SET(LIBQNORMALIZ_ROOT_DIR ${prefix})41SET(LIBQNORMALIZ_VERSION_STRING ${VERSION_STRING})42SET(LIBQNORMALIZ_VERSION_MAJOR ${VERSION_MAJOR})43SET(LIBQNORMALIZ_VERSION_MINOR ${VERSION_MINOR})44SET(LIBQNORMALIZ_VERSION_PATCH ${VERSION_PATCH})45CONFIGURE_FILE(Qversion.h.in ${CMAKE_CURRENT_SOURCE_DIR}/Qversion.h @ONLY)46SET(LIBQNORMALIZ_USE_FILE ${CMAKE_INSTALL_PREFIX}/${LIBQNORMALIZ_CMAKE_CONFIG_DIR}/UseLibQnormaliz.cmake)47CONFIGURE_FILE(../LibQnormalizConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibQnormalizConfig.cmake @ONLY)48#INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/LibQnormalizConfig.cmake ../UseLibnormaliz.cmake DESTINATION ${LIBQNORMALIZ_CMAKE_CONFIG_DIR})4950#ADD_SUBDIRECTORY(examples)515253