More fixes for building echld with cmake (not yet finished)
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Jul 2013 13:40:08 +0000 (13:40 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 21 Jul 2013 13:40:08 +0000 (13:40 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@50752 f5534014-38df-0310-8fa8-9805f1628bb7

echld/CMakeLists.txt

index 748e8dae8c22c2d250c8a39dab76418d45be5636..3e99536134cc0c7ec3112fa6703b5944374ff991 100644 (file)
 #
 
 set(ECHLD_FILES
-  echld_common.c
-  echld_child.c
-  echld_dispatcher.c
-  echld_parent.c
-  echld_util.c
+       child.c
+       common.c
+       dispatcher.c
+       echld-util.c
+       parent.c
 )
 
-set(wsutil_LIBS
-  ${GLIB2_LIBRARIES}
+set(echld_LIBS
+       ${GLIB2_LIBRARIES}
 )
 
+set(CLEAN_FILES
+       ${ECHLD_FILES}
+)
+
+if (WERROR)
+       set_source_files_properties(
+               ${CLEAN_FILES}
+               PROPERTIES
+               COMPILE_FLAGS -Werror
+       )
+endif()
+
+
 add_library(echld ${LINK_MODE_LIB}
-  ${ECHLD_FILES}
+       ${ECHLD_FILES}
 )
 
 set(FULL_SO_VERSION "0.0.0")
 
-set_target_properties(wsutil PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
-set_target_properties(wsutil PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
-set_target_properties(wsutil PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)
+set_target_properties(echld PROPERTIES COMPILE_DEFINITIONS "WS_BUILD_DLL")
+set_target_properties(echld PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
+set_target_properties(echld PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0)
 
 # discover and substitute list of include directories for ABI compatibility
 # checks