You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #45 from sbraz/testmedia
Properly set test media files path, fixes #36
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user