Merge pull request #45 from sbraz/testmedia

Properly set test media files path, fixes #36
This commit is contained in:
Jonathan Thomas
2018-03-04 00:08:37 -06:00
committed by GitHub

View File

@@ -24,16 +24,19 @@
# along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
################################################################################
SET(TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
################ WINDOWS ##################
# Set some compiler options for Windows
# required for libopenshot-audio headers
IF (WIN32)
STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/")
add_definitions( -DIGNORE_JUCE_HYPOT=1 -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH TEST_MEDIA_PATH)
add_definitions( -DIGNORE_JUCE_HYPOT=1 )
SET(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath")
ENDIF(WIN32)
add_definitions( -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" )
################### UNITTEST++ #####################
# Find UnitTest++ libraries (used for unit testing)
FIND_PACKAGE(UnitTest++ REQUIRED)
@@ -184,4 +187,4 @@ IF (NOT DISABLE_TESTS)
#################### MAKE TEST ######################
# Hook up the 'make test' target to the 'openshot-test' executable
ADD_CUSTOM_TARGET(test ${CMAKE_CURRENT_BINARY_DIR}/openshot-test)
ENDIF (NOT DISABLE_TESTS)
ENDIF (NOT DISABLE_TESTS)