aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-24 15:54:38 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-24 17:35:35 -0300
commitf7a2b6099245ee47cd7f87b2ca7c0a8e513797d0 (patch)
tree13da70d9af84f1a47720af7dfc09e10fb0e45e1a /CMakeLists.txt
parent2f0a8f07a9412441d34098c26cf4360d6246e0b5 (diff)
Fix bug in CMakeLists.txt triggered when some paths contains white spaces.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files changed, 13 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 40a405c3..fd5b7ffb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ set(generator_plugin_DIR ${LIB_INSTALL_DIR}/generatorrunner)
add_definitions(${QT_DEFINITIONS})
-configure_file(generatorrunnerconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/generatorrunnerconfig.h @ONLY)
+configure_file(generatorrunnerconfig.h.in "${CMAKE_CURRENT_BINARY_DIR}/generatorrunnerconfig.h" @ONLY)
set(CMAKE_BUILD_TYPE Debug)
@@ -46,10 +46,10 @@ target_link_libraries(generatorrunner
${QT_QTCORE_LIBRARY})
# create pkg-config file
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/generatorrunner.pc.in
- ${CMAKE_CURRENT_BINARY_DIR}/generatorrunner.pc @ONLY)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FindGeneratorRunner.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/FindGeneratorRunner.cmake @ONLY)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/generatorrunner.pc.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/generatorrunner.pc" @ONLY)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/FindGeneratorRunner.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/FindGeneratorRunner.cmake" @ONLY)
# uninstall target
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake"
@@ -63,22 +63,22 @@ add_custom_target(uninstall "${CMAKE_COMMAND}"
set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${generator_VERSION})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
- | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+ | bzip2 > "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2"
+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
-install(TARGETS genrunner LIBRARY DESTINATION ${LIB_INSTALL_DIR}
- ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+install(TARGETS genrunner LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
+ ARCHIVE DESTINATION "${LIB_INSTALL_DIR}"
RUNTIME DESTINATION bin)
install(TARGETS generatorrunner DESTINATION bin)
install(FILES generator.h DESTINATION include/generatorrunner)
install(FILES generatorrunnermacros.h DESTINATION include/generatorrunner)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/generatorrunner.pc DESTINATION
- ${LIB_INSTALL_DIR}/pkgconfig)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FindGeneratorRunner.cmake
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/generatorrunner.pc" DESTINATION
+ "${LIB_INSTALL_DIR}/pkgconfig")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindGeneratorRunner.cmake"
DESTINATION "share/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules")
#FIXME: manpages should be installed only on Linux targets
-file(GLOB manpages ${CMAKE_CURRENT_SOURCE_DIR}/*.1)
+file(GLOB manpages "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
install(FILES ${manpages} DESTINATION share/man/man1)
enable_testing()