Fixed wrong rpath in unittest binary
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1288 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -28,8 +28,13 @@ if ( OPENMESH_BUILD_UNIT_TESTS )
|
|||||||
|
|
||||||
# Create new target named unittests_hexmeshing
|
# Create new target named unittests_hexmeshing
|
||||||
FILE(GLOB UNITTEST_SRC *.cc)
|
FILE(GLOB UNITTEST_SRC *.cc)
|
||||||
|
# Create unittest executable
|
||||||
acg_add_executable(unittests ${UNITTEST_SRC})
|
acg_add_executable(unittests ${UNITTEST_SRC})
|
||||||
|
|
||||||
|
# For the unittest we don't want the install rpath as set by acg_add_executable
|
||||||
|
set_target_properties ( unittests PROPERTIES BUILD_WITH_INSTALL_RPATH 0 )
|
||||||
|
|
||||||
|
|
||||||
if ( NOT WIN32)
|
if ( NOT WIN32)
|
||||||
# Link against all necessary libraries
|
# Link against all necessary libraries
|
||||||
target_link_libraries(unittests OpenMeshCore OpenMeshTools ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
|
target_link_libraries(unittests OpenMeshCore OpenMeshTools ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
|
||||||
|
|||||||
Reference in New Issue
Block a user