Hello
I want to try to use thor, but I have problems :
I tried to use triangulation, but I have a segmentation fault when I call
OutputIterator thor::triangulate ( InputIterator verticesBegin, InputIterator verticesEnd, OutputIterator trianglesOut )
To be sure that I did not make mistakes in my code, I tried to compile the triangulation example with my compiler settings : I copy paste the main function in my main.cpp, but keep my CMakeLists.txt as I am used to write it.
So in my opinion the problem is here : I probably forgot an option in my cmake file, but I don't understand cmake enough to find what is wrong in my file compared to the lib file.
So I ask you for help
Here is my CMakeLists.txt :
cmake_minimum_required(VERSION 2.6)
#Project name
project(Projet)
SET(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(SFML COMPONENTS graphics window system REQUIRED)
find_package(Thor REQUIRED)
include_directories(${SFML_INCLUDE_DIRS})
include_directories(${THOR_INCLUDE_DIRS})
file(
GLOB_RECURSE
source_file
src/*
)
#Executable
add_executable(
exe
${source_file}
)
target_link_libraries(
exe
${SFML_LIBRARIES}
${THOR_LIBRARY}
)
I hope you will be able to help me, and I apoligize if my question is stupid.
Thank you
(And please excuse my english : I am french and I did not practice for a while
)