Commit 52aecaa2 authored by Matthieu Boileau's avatar Matthieu Boileau

Fix CmakeLists for maillage_plot

parent 0bbe0a6f
......@@ -15,13 +15,10 @@ else()
set(CMAKE_FIND_FRAMEWORK NEVER)
endif()
# Nécessite CMake >= 3.12
set(Python3_FIND_VIRTUALENV "ONLY")
find_package(Python3 COMPONENTS Interpreter Development NumPy required)
set(Python_NumPy_INCLUDE_DIRS ${Python3_NumPy_INCLUDE_DIRS})
find_package(Python3 COMPONENTS Interpreter Development required)
set(Python_LIBRARIES ${Python3_LIBRARIES})
set(Python_INCLUDE_DIRS ${Python3_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS})
set(Python_INCLUDE_DIRS ${Python3_INCLUDE_DIRS})
endif()
message(" Python_NumPy_INCLUDE_DIRS: ${Python_NumPy_INCLUDE_DIRS}")
message(" Python_INCLUDE_DIRS : ${Python_INCLUDE_DIRS}")
message(" Python_LIBRARIES : ${Python_LIBRARIES}")
......@@ -35,7 +32,7 @@ include_directories(include)
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
# On indique les options de compilations
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS "-std=c++11 -DWITHOUT_NUMPY")
# On crée la bibliothèque libmaillage.a
add_library(maillage ${SOURCE_FILES})
......
Markdown is supported
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