CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

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

Views: 418386
1
# libQnormaliz source files
2
SET(sources Qcone_property.cpp libQnormaliz-templated.cpp Qcone_helper.cpp)
3
# libnormaliz header files
4
SET(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)
5
6
# add the necessary include directories
7
INCLUDE_DIRECTORIES(..)
8
FIND_PACKAGE(Boost REQUIRED)
9
#IF (Boost_FOUND)
10
# MESSAGE(STATUS "Boost found with include dir: ${Boost_INCLUDE_DIR}")
11
#ENDIF()
12
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
13
14
SET (QNMZ_BUILD_BOTH "NO" CACHE BOOL "build shared AND static libQnormaliz")
15
16
IF (QNMZ_BUILD_BOTH OR NOT QNMZ_BUILD_STATIC)
17
# create the shared library
18
ADD_LIBRARY(Qnormaliz-shared SHARED ${sources})
19
SET_TARGET_PROPERTIES(Qnormaliz-shared PROPERTIES OUTPUT_NAME Qnormaliz VERSION ${VERSION} SOVERSION 0)
20
# set the dependency on gmp
21
TARGET_LINK_LIBRARIES (Qnormaliz-shared ${GMPXX_LIBRARIES} ${GMP_LIBRARIES})
22
INSTALL(TARGETS Qnormaliz-shared
23
ARCHIVE DESTINATION lib
24
LIBRARY DESTINATION lib${LIB_SUFFIX}
25
RUNTIME DESTINATION bin
26
COMPONENT sharedlibs
27
)
28
ENDIF ()
29
30
IF (QNMZ_BUILD_BOTH OR QNMZ_BUILD_STATIC)
31
#create the static library
32
ADD_LIBRARY(Qnormaliz-static STATIC ${sources})
33
SET_TARGET_PROPERTIES(Qnormaliz-static PROPERTIES OUTPUT_NAME Qnormaliz VERSION ${VERSION} SOVERSION 0)
34
INSTALL(TARGETS Qnormaliz-static ARCHIVE DESTINATION lib${LIB_SUFFIX})
35
ENDIF ()
36
37
INSTALL(FILES ${headers} DESTINATION include/${PROJECT_NAME} COMPONENT headers)
38
39
SET(LIBQNORMALIZ_INCLUDE_DIR ${includedir})
40
SET(LIBQNORMALIZ_INCLUDE_DIRS ${LIBQNORMALIZ_INCLUDE_DIR})
41
SET(LIBQNORMALIZ_ROOT_DIR ${prefix})
42
SET(LIBQNORMALIZ_VERSION_STRING ${VERSION_STRING})
43
SET(LIBQNORMALIZ_VERSION_MAJOR ${VERSION_MAJOR})
44
SET(LIBQNORMALIZ_VERSION_MINOR ${VERSION_MINOR})
45
SET(LIBQNORMALIZ_VERSION_PATCH ${VERSION_PATCH})
46
CONFIGURE_FILE(Qversion.h.in ${CMAKE_CURRENT_SOURCE_DIR}/Qversion.h @ONLY)
47
SET(LIBQNORMALIZ_USE_FILE ${CMAKE_INSTALL_PREFIX}/${LIBQNORMALIZ_CMAKE_CONFIG_DIR}/UseLibQnormaliz.cmake)
48
CONFIGURE_FILE(../LibQnormalizConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibQnormalizConfig.cmake @ONLY)
49
#INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/LibQnormalizConfig.cmake ../UseLibnormaliz.cmake DESTINATION ${LIBQNORMALIZ_CMAKE_CONFIG_DIR})
50
51
#ADD_SUBDIRECTORY(examples)
52
53