Skip to content
Snippets Groups Projects
Commit b082be17 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Fix compilation of tests

    * src/CMakeLists.txt, link to dl,
    * unitTesting/CMakeLists.txt.
parent e8dd412c
No related branches found
No related tags found
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment