Commit 7cffead6 authored by denis.arrivault's avatar denis.arrivault
Browse files

Add c99 compilation option to targets + add explicit python include

parent 238e93a0
Pipeline #1613 passed with stage
in 4 minutes and 30 seconds
...@@ -25,6 +25,12 @@ set(LTFATPY_DIR "${CMAKE_SOURCE_DIR}/ltfatpy") ...@@ -25,6 +25,12 @@ set(LTFATPY_DIR "${CMAKE_SOURCE_DIR}/ltfatpy")
set(CKERNEL_DIR "${LTFATPY_SOURCE_DIR}/ltfat_C_kernel") set(CKERNEL_DIR "${LTFATPY_SOURCE_DIR}/ltfat_C_kernel")
set(DOC_DIR "${LTFATPY_SOURCE_DIR}/doc") set(DOC_DIR "${LTFATPY_SOURCE_DIR}/doc")
##### Find Python
find_package( PythonLibs 3 REQUIRED )
find_package( PythonInterp 3 REQUIRED )
include_directories( ${PYTHON_INCLUDE_DIRS} )
message("PYTHON INCLUDES : ${PYTHON_INCLUDE_DIRS}")
#### Find FFTW #### Find FFTW
find_package(FFTW REQUIRED) find_package(FFTW REQUIRED)
message ("FFTW found") message ("FFTW found")
......
...@@ -20,12 +20,14 @@ add_library(ltfatf STATIC ${SRC} ${SRC_BLASLAPACK}) ...@@ -20,12 +20,14 @@ add_library(ltfatf STATIC ${SRC} ${SRC_BLASLAPACK})
target_link_libraries(ltfatf ${FFTW_LIBRARIES} ${FFTWF_LIBRARIES} target_link_libraries(ltfatf ${FFTW_LIBRARIES} ${FFTWF_LIBRARIES}
${LAPACK_LIBRARIES} ${CMAKE_EXE_LINKER_FLAGS}) ${LAPACK_LIBRARIES} ${CMAKE_EXE_LINKER_FLAGS})
target_compile_definitions(ltfatf PUBLIC LTFAT_SINGLE) target_compile_definitions(ltfatf PUBLIC LTFAT_SINGLE)
set_property(TARGET ltfatf PROPERTY C_STANDARD 99)
install(TARGETS ltfatf ARCHIVE DESTINATION ${CKERNEL_DIR}/lib) install(TARGETS ltfatf ARCHIVE DESTINATION ${CKERNEL_DIR}/lib)
add_library(ltfat STATIC ${SRC} ${SRC_BLASLAPACK} ${SRC_NOTYPECHANGE}) add_library(ltfat STATIC ${SRC} ${SRC_BLASLAPACK} ${SRC_NOTYPECHANGE})
target_link_libraries(ltfat ${FFTW_LIBRARIES} ${FFTWF_LIBRARIES} target_link_libraries(ltfat ${FFTW_LIBRARIES} ${FFTWF_LIBRARIES}
${LAPACK_LIBRARIES} ${CMAKE_EXE_LINKER_FLAGS}) ${LAPACK_LIBRARIES} ${CMAKE_EXE_LINKER_FLAGS})
target_compile_definitions(ltfat PUBLIC LTFAT_DOUBLE) target_compile_definitions(ltfat PUBLIC LTFAT_DOUBLE)
set_property(TARGET ltfat PROPERTY C_STANDARD 99)
install(TARGETS ltfat ARCHIVE DESTINATION ${CKERNEL_DIR}/lib) install(TARGETS ltfat ARCHIVE DESTINATION ${CKERNEL_DIR}/lib)
#add_subdirectory(tests) #add_subdirectory(tests)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment