view common/CMakeLists.txt @ 754:27043d74dc90

(Issue25) Align header contents in their own column. We now also stretch column 3 so that the contents are aligned with the descriptive labels without a space in between. Sadly this causes the quit button to be resized to it's minimum instead of sharing the space with the installation button as the installation button is so large that it squeezes the push button.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 07 Jul 2014 12:38:33 +0200
parents 80d1a80b3e8d
children 20ca94680003
line wrap: on
line source
# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
# Software engineering by Intevation GmbH
#
# This file is Free Software under the GNU GPL (v>=2)
# and comes with ABSOLUTELY NO WARRANTY!
# See LICENSE.txt for details.

include_directories(${CMAKE_CURRENT_BINARY_DIR})

set (trustbridge_common_src
   certhelp.c
   listutil.c
   logging.c
   portpath.c
   strhelp.c
   util.c
   binverify.c
   selftest.c
)

if(WIN32)
   # Add the event messages
   if (MINGW)
      STRING(REGEX REPLACE "windres" "windmc" MC_COMPILER ${CMAKE_RC_COMPILER})
   else()
      # untested
      set(MC_COMPILER "mc.exe")
   endif()

   add_custom_command(
       OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/events.h
              ${CMAKE_CURRENT_BINARY_DIR}/events.rc
              ${CMAKE_CURRENT_BINARY_DIR}/MSG00407.bin
              ${CMAKE_CURRENT_BINARY_DIR}/MSG00409.bin
       COMMAND ${MC_COMPILER} ${CMAKE_SOURCE_DIR}/common/events.mc -a -U -r ${CMAKE_CURRENT_BINARY_DIR} -h ${CMAKE_CURRENT_BINARY_DIR}
       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/events.mc)
   set(trustbridge_common_src ${trustbridge_common_src} ${CMAKE_CURRENT_BINARY_DIR}/events.h)
endif()

add_library(trustbridge_common STATIC ${trustbridge_common_src})

http://wald.intevation.org/projects/trustbridge/