diff options
author | Jörg Mayer <jmayer@loplof.de> | 2013-07-21 13:40:08 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2013-07-21 13:40:08 +0000 |
commit | 94aa66e642efba1aa2e787687c89a9e3848221a2 (patch) | |
tree | dc0713cb73a8914d7355df9355423449870f4f65 /echld | |
parent | df397b4f639b263d8c3e41c9c0d1ec76912e9b2b (diff) |
More fixes for building echld with cmake (not yet finished)
svn path=/trunk/; revision=50752
Diffstat (limited to 'echld')
-rw-r--r-- | echld/CMakeLists.txt | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/echld/CMakeLists.txt b/echld/CMakeLists.txt index 748e8dae8c..3e99536134 100644 --- a/echld/CMakeLists.txt +++ b/echld/CMakeLists.txt @@ -22,26 +22,39 @@ # 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 |