MuseScore/manual/CMakeLists.txt
Jarrad Whitaker 851867b2c4 fix indenting
2014-07-21 20:49:32 +10:00

59 lines
1.5 KiB
CMake

#=============================================================================
# MuseScore
# Music Composition & Notation
# $Id:$
#
# Copyright (C) 2011 Werner Schweer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation and appearing in
# the file LICENSE.GPL
#=============================================================================
include_directories(
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}
)
if (APPLE)
file(GLOB_RECURSE INCS "*.h")
else (APPLE)
set(INCS "")
endif (APPLE)
add_executable(
genManual
${INCS}
genManual.cpp
)
target_link_libraries(
genManual
${QT_LIBRARIES}
)
if(APPLE)
set_target_properties (
genManual
PROPERTIES
COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -g -Wall -Wextra"
)
else(APPLE)
set_target_properties (
genManual
PROPERTIES
COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
)
endif(APPLE)
ADD_DEPENDENCIES(genManual mops1)
add_custom_target(pluginDocumentation
ALL
DEPENDS genManual
)
add_custom_command(TARGET pluginDocumentation
POST_BUILD
COMMAND ${PROJECT_BINARY_DIR}/manual/${CMAKE_CFG_INTDIR}/genManual ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}/share/manual
)