if (DBUS_INSTALL_SYSTEM_LIBS)
- if (MINGW)
- else (MINGW)
- INCLUDE(InstallRequiredSystemLibraries)
- endif (MINGW)
+ if (MINGW)
+ else (MINGW)
+ INCLUDE(InstallRequiredSystemLibraries)
+ endif (MINGW)
install(FILES ${LIBEXPAT_LIBRARIES} DESTINATION ${CMAKE_INSTALL_BINDIR})
endif (DBUS_INSTALL_SYSTEM_LIBS)
# not implemented yet
#
macro(autoconfig template output)
- file(READ ${template} contents)
- # Convert file contents into a CMake list (where each element in the list
- # is one line of the file)
- STRING(REGEX REPLACE ";" "\\\\;" contents "${contents}")
- STRING(REGEX REPLACE "\n" ";" contents "${contents}")
- foreach(line contents)
- message(STATUS ${line})
- # find #undef lines
- # append to config.h #define <variable-name> <variable-content>
- endforeach()
+ file(READ ${template} contents)
+ # Convert file contents into a CMake list (where each element in the list
+ # is one line of the file)
+ STRING(REGEX REPLACE ";" "\\\\;" contents "${contents}")
+ STRING(REGEX REPLACE "\n" ";" contents "${contents}")
+ foreach(line contents)
+ message(STATUS ${line})
+ # find #undef lines
+ # append to config.h #define <variable-name> <variable-content>
+ endforeach()
endmacro()
# mode==split : standard behavior of cmake, split headers and sources
# mode== <other values" : code is in this folder
macro(project_source_group mode sources headers)
- #message(STATUS ${mode})
- #message(STATUS ${sources} ${headers})
- if(${mode} MATCHES "flat")
- source_group("Source Files" Files)
- source_group("Header Files" Files)
- source_group("cmake" FILES CMakeLists.txt)
- else(${mode} MATCHES "flat")
- if(NOT ${mode} MATCHES "split")
- source_group("${mode}" FILES ${${sources}} ${${headers}})
- endif(NOT ${mode} MATCHES "split")
- endif(${mode} MATCHES "flat")
+ #message(STATUS ${mode})
+ #message(STATUS ${sources} ${headers})
+ if(${mode} MATCHES "flat")
+ source_group("Source Files" Files)
+ source_group("Header Files" Files)
+ source_group("cmake" FILES CMakeLists.txt)
+ else(${mode} MATCHES "flat")
+ if(NOT ${mode} MATCHES "split")
+ source_group("${mode}" FILES ${${sources}} ${${headers}})
+ endif(NOT ${mode} MATCHES "split")
+ endif(${mode} MATCHES "flat")
endmacro(project_source_group mode sources headers)