Fix bug #93: add platform check for how to link to the standard math library.

This allows to support QNX.
This commit is contained in:
Benoit Jacob
2010-04-19 11:30:46 -04:00
parent 4785e27d6a
commit 8d4b0aae04
4 changed files with 42 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ ADD_CUSTOM_TARGET(all_examples)
FOREACH(example_src ${examples_SRCS})
GET_FILENAME_COMPONENT(example ${example_src} NAME_WE)
ADD_EXECUTABLE(${example} ${example_src})
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
endif()
GET_TARGET_PROPERTY(example_executable
${example} LOCATION)
ADD_CUSTOM_COMMAND(