Split BUILD_TESTS to BUILD_TESTS and BUILD_EXAMPLES.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@740072 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský 2007-11-22 13:20:21 +00:00
parent 51a5ae46b1
commit bb9e6fe65f
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
project(taglib)
OPTION(BUILD_TESTS "Create tests and examples" OFF)
OPTION(BUILD_TESTS "Build the test suite" OFF)
OPTION(BUILD_EXAMPLES "Build the examples" OFF)
#add some KDE specific stuff
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )

View File

@ -1,4 +1,4 @@
if(BUILD_TESTS)
if(BUILD_EXAMPLES)
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../taglib
${CMAKE_CURRENT_SOURCE_DIR}/../taglib/toolkit
${CMAKE_CURRENT_SOURCE_DIR}/../taglib/mpeg
@ -73,5 +73,5 @@ TARGET_LINK_LIBRARIES(strip-id3v1 tag )
#INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/strip-id3v1 DESTINATION ${BIN_INSTALL_DIR})
endif(BUILD_TESTS)
endif(BUILD_EXAMPLES)