Reformats CMakeLists.txt to fit in an 80x24 terminal
authorLuís Pereira <luis.artur.pereira@gmail.com>
Thu, 9 Jan 2014 15:21:03 +0000 (07:21 -0800)
committerLuís Pereira <luis.artur.pereira@gmail.com>
Thu, 9 Jan 2014 15:21:03 +0000 (07:21 -0800)
It also fixes some indentation stuff.
set(CMAKE_CXX_FLAGS ...... ) was not forgotten. I don't know how to break
long strings. Is it possible ?

CMakeLists.txt
translatorsinfo/CMakeLists.txt

index a36eaaa..a642aa9 100644 (file)
@@ -137,7 +137,9 @@ include_directories (
     ${QTXDG_INCLUDE_DIRS}
 )
 
-set(LXQT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_PATCH_VERSION})
+set(LXQT_VERSION
+    ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_PATCH_VERSION}
+)
 
 message(STATUS "")
 message(STATUS "liblxqt version: ${LXQT_VERSION}")
@@ -167,8 +169,9 @@ set(APP_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/liblxqt)
 
 # use gcc visibility feature to decrease unnecessary exported symbols
 if (CMAKE_COMPILER_IS_GNUCXX)
-  # set visibility to hidden to hide symbols, unlesss they're exporeted manually in the code
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wl,-no-undefined -Wall")
+    # set visibility to hidden to hide symbols, unlesss they're exporeted
+    # manually in the code
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wl,-no-undefined -Wall")
 endif()
 add_definitions(-DCOMPILE_LIBLXQT)
 
@@ -214,7 +217,10 @@ install(FILES ${PUB_HDRS}  DESTINATION ${LXQT_INCLUDE_DIR})
 install(FILES ${PORTABLE_HEADERS} DESTINATION ${LXQT_INCLUDE_DIR})
 install(FILES ${QM_FILES} DESTINATION ${LXQT_TRANSLATIONS_DIR})
 
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lxqt-config.cmake DESTINATION share/cmake/lxqt)
+install(FILES
+    ${CMAKE_CURRENT_BINARY_DIR}/lxqt-config.cmake
+    DESTINATION share/cmake/lxqt
+)
 install(FILES cmake/lxqt_use.cmake DESTINATION share/cmake/lxqt)
 
 include(cmake/create_pkgconfig_file.cmake)
index 078a16d..824aa4e 100644 (file)
@@ -32,6 +32,10 @@ function(get_translatorsinfo_qrc _qrcFile)
     )
    
     create_translatorsinfo_file(TRANSLATORS_INFO_FILE)
-    configure_file(translatorsinfo/translatorsinfo.qrc.in ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc)
-    set(${_qrcFile} ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc PARENT_SCOPE)
+    configure_file(
+        translatorsinfo/translatorsinfo.qrc.in
+        ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc
+    )
+    set(${_qrcFile}
+        ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc PARENT_SCOPE)
 endfunction(get_translatorsinfo_qrc)