[CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Orion Poplawski
We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c ${LAUNCH}) add_executable(launchtest EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c) add_library(test_ce SHARED

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Alexander Neundorf
On Tuesday 26 February 2013, Orion Poplawski wrote: We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c ${LAUNCH}) add_executable(launchtest EXCLUDE_FROM_ALL

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Orion Poplawski
On 02/26/2013 12:06 PM, Alexander Neundorf wrote: On Tuesday 26 February 2013, Orion Poplawski wrote: We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c ${LAUNCH})

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Alexander Neundorf
On Tuesday 26 February 2013, Orion Poplawski wrote: On 02/26/2013 12:06 PM, Alexander Neundorf wrote: On Tuesday 26 February 2013, Orion Poplawski wrote: We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 2:15 PM, Orion Poplawski or...@cora.nwra.com wrote: On 02/26/2013 12:06 PM, Alexander Neundorf wrote: On Tuesday 26 February 2013, Orion Poplawski wrote: We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set?