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:
Jan Möbius
2015-06-16 10:57:51 +00:00
parent d94290c0fe
commit 0460f0811f

View File

@@ -28,16 +28,21 @@ 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)
acg_add_executable(unittests ${UNITTEST_SRC}) # Create unittest executable
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)
# Set output directory to ${BINARY_DIR}/Unittests # Set output directory to ${BINARY_DIR}/Unittests
set_target_properties(unittests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Unittests) set_target_properties(unittests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Unittests)
else() else()
# Link against all necessary libraries # Link against all necessary libraries
if ( OPENMESH_BUILD_SHARED ) if ( OPENMESH_BUILD_SHARED )
#!!!! Experimental Feature!!! #!!!! Experimental Feature!!!