zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 7b1d324d1ee6b815119a18154d139d76090eba85
parent 471a790ee9e35bebc27d0a412c29fb7b48fc819e
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Sun, 15 Mar 2015 01:15:50 -0400

CMake: Add Colorized Status

Diffstat:
MCMakeLists.txt | 1+
Msrc/CMakeLists.txt | 41+++++++++++++++++++++++++++++++++++------
2 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -19,6 +19,7 @@ else() endif() set(RTOSC_NO_INSTALL TRUE) +include("rtosc/cmake/ColorMessage.cmake") add_subdirectory(rtosc) include_directories(rtosc/include) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -69,8 +69,6 @@ SET (LibloEnable ${LIBLO_FOUND} CACHE BOOL # Add version information add_definitions(-DVERSION="${VERSION}") -message(STATUS "Building on a '${CMAKE_SYSTEM_NAME}' System") - if(NOT "Darwin" STREQUAL ${CMAKE_SYSTEM_NAME}) # Add scheduler function existance info (OSX compatiability) add_definitions(-DHAVE_SCHEDULER=${HAVE_SCHEDULER}) @@ -362,8 +360,6 @@ if(CompileTests) add_subdirectory(Tests) endif(CompileTests) -message(STATUS "using link directories: ${AUDIO_LIBRARY_DIRS} ${ZLIB_LIBRARY_DIRS} ${FFTW_LIBRARY_DIRS} ${MXML_LIBRARY_DIRS} ${FLTK_LIBRARY_DIRS}") - add_executable(zynaddsubfx main.cpp) @@ -394,12 +390,45 @@ if (DssiEnable) endif () endif() -message(STATUS "Link libraries: ${ZLIB_LIBRARY} ${FFTW_LIBRARY} ${MXML_LIBRARIES} ${AUDIO_LIBRARIES} ${OS_LIBRARIES}") install(TARGETS zynaddsubfx RUNTIME DESTINATION bin ) if(NtkGui) -install(DIRECTORY ../pixmaps DESTINATION share/zynaddsubfx) + install(DIRECTORY ../pixmaps DESTINATION share/zynaddsubfx) endif(NtkGui) include(CTest) + + +##Summarize The Full Configuration +message(STATUS) +message(STATUS "${ColorBold}ZynAddSubFX Build Configuration") +message(STATUS "===============================${ColorReset}") +message(STATUS) +message(STATUS "Building on a '${CMAKE_SYSTEM_NAME}' System") + + +macro(package_status foundvar pkg state color) + if(${foundvar}) + message(STATUS "${pkg} -- ${Green}${state}${ColorReset}") + else() + message(STATUS "${pkg} -- ${color}NOT ${state}${ColorReset}") + endif() +endmacro() + +package_status(PKG_CONFIG_FOUND "PkgConfig" "found" ${Red}) +package_status(ZLIB_FOUND "zlib " "found" ${Red}) +package_status(MXML_FOUND "mxml " "found" ${Red}) +package_status(FFTW_FOUND "fftw3 " "found" ${Red}) +package_status(OssEnable "OSS " "enabled" ${Yellow}) +package_status(AlsaEnable "ALSA " "enabled" ${Yellow}) +package_status(JackEnable "JACK " "enabled" ${Yellow}) +package_status(PaEnable "PA " "enabled" ${Yellow}) +package_status(CXXTEST_FOUND "CxxTest " "found" ${Yellow}) +#TODO GUI MODULE +package_status(LASH_FOUND "Lash " "enabled" ${Yellow}) +package_status(DSSI_FOUND "DSSI " "enabled" ${Yellow}) +package_status(LIBLO_FOUND "liblo " "enabled" ${Red}) +package_status(FLTK_FOUND "fltk " "found" ${Yellow}) +package_status(NTK_FOUND "ntk " "found" ${Yellow}) +message(STATUS "Link libraries: ${ZLIB_LIBRARY} ${FFTW_LIBRARY} ${MXML_LIBRARIES} ${AUDIO_LIBRARIES} ${OS_LIBRARIES}")