Commit b082be17 authored by florent's avatar florent
Browse files

Fix compilation of tests

    * src/CMakeLists.txt, link to dl,
    * unitTesting/CMakeLists.txt.
parent e8dd412c
......@@ -45,6 +45,10 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME}
LINK_FLAGS "${${PROJECT_NAME}_src_LDFLAGS}"
)
IF (UNIX)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} dl)
ENDIF (UNIX)
INSTALL(TARGETS ${LIBRARY_NAME}
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
......
......@@ -22,10 +22,6 @@ FOREACH(test_name ${tests})
LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/lib)
IF(UNIX)
EXTRA_LIBRARIES(dl)
ENDIF(UNIX)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
${PROJECT_NAME}
${EXTRA_LIBRARIES})
......
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