misc: add generation information

Thu, 26 Apr 2018 17:19:58 +0200

author
David Demelier <markand@malikania.fr>
date
Thu, 26 Apr 2018 17:19:58 +0200
changeset 22
cc87d1ed14a5
parent 21
38d927bed5c3
child 23
2a32be5d151b

misc: add generation information

CMakeLists.txt file | annotate | diff | comparison | revisions
dmenu-background/CMakeLists.txt file | annotate | diff | comparison | revisions
dmenu-mpc/CMakeLists.txt file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -27,3 +27,9 @@
 add_subdirectory(libdmenutools)
 add_subdirectory(dmenu-background)
 add_subdirectory(dmenu-mpc)
+
+message("")
+message("dmenutools configuration")
+message("    dmenu-background:  ${WITH_BACKGROUND_MSG}")
+message("    dmenu-mpc:         ${WITH_MPC_MSG}")
+message("")
--- a/dmenu-background/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/dmenu-background/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -19,3 +19,4 @@
 project(dmenu-background)
 add_executable(dmenu-background main.cpp)
 target_link_libraries(dmenu-background libdmenutools)
+set(WITH_BACKGROUND_MSG "Yes" CACHE "" INTERNAL FORCE)
--- a/dmenu-mpc/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/dmenu-mpc/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -22,8 +22,9 @@
 pkg_check_modules(libmpdclient IMPORTED_TARGET libmpdclient)
 
 if (NOT libmpdclient_FOUND)
-    message("NOT building dmenu-mpc")
+    set(WITH_MPC_MSG "No (libmpdclient not found)" CACHE "" INTERNAL FORCE)
 else ()
+    set(WITH_MPC_MSG "Yes" CACHE "" INTERNAL FORCE)
     add_executable(dmenu-mpc main.cpp)
     target_link_libraries(dmenu-mpc libdmenutools PkgConfig::libmpdclient)
 endif ()

mercurial