1# - Config file for the Palisade package
2# It defines the following variables
3#  PALISADE_INCLUDE_DIRS - include directories for Palisade
4#  PALISADE_LIBRARIES    - libraries to link against
5
6get_filename_component(PALISADE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
7
8# Our library dependencies (contains definitions for IMPORTED targets)
9if(NOT Palisade_BINARY_DIR)
10  include("${PALISADE_CMAKE_DIR}/PalisadeTargets.cmake")
11endif()
12
13# These are IMPORTED targets created by PalisadeTargets.cmake
14set(PALISADE_INCLUDE "@INSTALL_INCLUDE_DIR@")
15set(PALISADE_LIBDIR "@INSTALL_LIB_DIR@")
16set(PALISADE_LIBRARIES @PALISADE_PACKAGE_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
17set(PALISADE_STATIC_LIBRARIES @PALISADE_STATIC_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
18set(PALISADE_SHARED_LIBRARIES @PALISADE_SHARED_LIBS@ @THIRDPARTYLIBS@ @OpenMP_CXX_FLAGS@)
19
20set(OPENMP_INCLUDES "@OPENMP_INCLUDES@" )
21set(OPENMP_LIBRARIES "@OPENMP_LIBRARIES@" )
22
23set(PALISADE_CXX_FLAGS "@CMAKE_CXX_FLAGS@ @OpenMP_CXX_FLAGS@")
24set(PALISADE_C_FLAGS "@CMAKE_C_FLAGS@ @OpenMP_C_FLAGS@")
25
26if( "@WITH_NTL@" STREQUAL "Y" )
27	set(PALISADE_CXX_FLAGS "${PALISADE_CXX_FLAGS} -DWITH_NTL" )
28	set(PALISADE_C_FLAGS "${PALISADE_C_FLAGS} -DWITH_NTL")
29endif()
30
31set (PALISADE_EXE_LINKER_FLAGS "@CMAKE_EXE_LINKER_FLAGS@ @OpenMP_EXE_LINKER_FLAGS@")
32