From e33ffc0a3cb8b17982788dcb45d4eae4e6d7cec7 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 25 Sep 2010 15:48:18 +0200 Subject: [PATCH] Added: New tools projects --- code/nel/tools/misc/CMakeLists.txt | 18 ++++++++++++++---- .../tools/misc/branch_patcher/CMakeLists.txt | 11 +++++++++++ code/nel/tools/misc/data_mirror/CMakeLists.txt | 11 +++++++++++ .../nel/tools/misc/exec_timeout/CMakeLists.txt | 9 +++++++++ .../tools/misc/extract_filename/CMakeLists.txt | 9 +++++++++ code/nel/tools/misc/lock/CMakeLists.txt | 9 +++++++++ .../nel/tools/misc/log_analyser/CMakeLists.txt | 11 +++++++++++ .../misc/log_analyser_plug_ins/CMakeLists.txt | 1 + .../extract_warnings/CMakeLists.txt | 11 +++++++++++ code/nel/tools/misc/message_box/CMakeLists.txt | 9 +++++++++ .../misc/multi_cd_setup_fix/CMakeLists.txt | 9 +++++++++ code/nel/tools/misc/words_dic/CMakeLists.txt | 15 +++++++++++++++ 12 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 code/nel/tools/misc/branch_patcher/CMakeLists.txt create mode 100644 code/nel/tools/misc/data_mirror/CMakeLists.txt create mode 100644 code/nel/tools/misc/exec_timeout/CMakeLists.txt create mode 100644 code/nel/tools/misc/extract_filename/CMakeLists.txt create mode 100644 code/nel/tools/misc/lock/CMakeLists.txt create mode 100644 code/nel/tools/misc/log_analyser/CMakeLists.txt create mode 100644 code/nel/tools/misc/log_analyser_plug_ins/CMakeLists.txt create mode 100644 code/nel/tools/misc/log_analyser_plug_ins/extract_warnings/CMakeLists.txt create mode 100644 code/nel/tools/misc/message_box/CMakeLists.txt create mode 100644 code/nel/tools/misc/multi_cd_setup_fix/CMakeLists.txt create mode 100644 code/nel/tools/misc/words_dic/CMakeLists.txt diff --git a/code/nel/tools/misc/CMakeLists.txt b/code/nel/tools/misc/CMakeLists.txt index 3e4410e86..64ea4f772 100644 --- a/code/nel/tools/misc/CMakeLists.txt +++ b/code/nel/tools/misc/CMakeLists.txt @@ -1,10 +1,20 @@ -ADD_SUBDIRECTORY(bnp_make) -ADD_SUBDIRECTORY(disp_sheet_id) -ADD_SUBDIRECTORY(make_sheet_id) -ADD_SUBDIRECTORY(xml_packer) +SUBDIRS(bnp_make disp_sheet_id extract_filename lock make_sheet_id xml_packer) IF(WITH_QT) ADD_SUBDIRECTORY(words_dic_qt) ADD_SUBDIRECTORY(message_box_qt) ENDIF(WITH_QT) +IF(WIN32) + ADD_SUBDIRECTORY(exec_timeout) + ADD_SUBDIRECTORY(message_box) + ADD_SUBDIRECTORY(multi_cd_setup_fix) + + IF(MFC_FOUND) + ADD_SUBDIRECTORY(branch_patcher) + ADD_SUBDIRECTORY(data_mirror) + ADD_SUBDIRECTORY(log_analyser) + ADD_SUBDIRECTORY(log_analyser_plug_ins) + ADD_SUBDIRECTORY(words_dic) + ENDIF(MFC_FOUND) +ENDIF(WIN32) diff --git a/code/nel/tools/misc/branch_patcher/CMakeLists.txt b/code/nel/tools/misc/branch_patcher/CMakeLists.txt new file mode 100644 index 000000000..28404d725 --- /dev/null +++ b/code/nel/tools/misc/branch_patcher/CMakeLists.txt @@ -0,0 +1,11 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(branch_patcher WIN32 ${SRC} branch_patcher.rc) + +TARGET_LINK_LIBRARIES(branch_patcher ${PLATFORM_LINKFLAGS}) +NL_DEFAULT_PROPS(branch_patcher "NeL, Tools, Misc: branch_patcher") +NL_ADD_RUNTIME_FLAGS(branch_patcher) + +ADD_DEFINITIONS(${MFC_DEFINITIONS}) + +INSTALL(TARGETS branch_patcher RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/data_mirror/CMakeLists.txt b/code/nel/tools/misc/data_mirror/CMakeLists.txt new file mode 100644 index 000000000..a05ddd0e2 --- /dev/null +++ b/code/nel/tools/misc/data_mirror/CMakeLists.txt @@ -0,0 +1,11 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(data_mirror WIN32 ${SRC} data_mirror.rc) + +TARGET_LINK_LIBRARIES(data_mirror ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(data_mirror "NeL, Tools, Misc: data_mirror") +NL_ADD_RUNTIME_FLAGS(data_mirror) + +ADD_DEFINITIONS(${MFC_DEFINITIONS}) + +INSTALL(TARGETS data_mirror RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/exec_timeout/CMakeLists.txt b/code/nel/tools/misc/exec_timeout/CMakeLists.txt new file mode 100644 index 000000000..0b3646df0 --- /dev/null +++ b/code/nel/tools/misc/exec_timeout/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(exec_timeout ${SRC}) + +TARGET_LINK_LIBRARIES(exec_timeout ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(exec_timeout "NeL, Tools, Misc: exec_timeout") +NL_ADD_RUNTIME_FLAGS(exec_timeout) + +INSTALL(TARGETS exec_timeout RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/extract_filename/CMakeLists.txt b/code/nel/tools/misc/extract_filename/CMakeLists.txt new file mode 100644 index 000000000..42df92e69 --- /dev/null +++ b/code/nel/tools/misc/extract_filename/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(extract_filename ${SRC}) + +TARGET_LINK_LIBRARIES(extract_filename ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(extract_filename "NeL, Tools, Misc: extract_filename") +NL_ADD_RUNTIME_FLAGS(extract_filename) + +INSTALL(TARGETS extract_filename RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/lock/CMakeLists.txt b/code/nel/tools/misc/lock/CMakeLists.txt new file mode 100644 index 000000000..fe8ef6cbd --- /dev/null +++ b/code/nel/tools/misc/lock/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(lock ${SRC}) + +TARGET_LINK_LIBRARIES(lock ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(lock "NeL, Tools, Misc: lock") +NL_ADD_RUNTIME_FLAGS(lock) + +INSTALL(TARGETS lock RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/log_analyser/CMakeLists.txt b/code/nel/tools/misc/log_analyser/CMakeLists.txt new file mode 100644 index 000000000..64c28818e --- /dev/null +++ b/code/nel/tools/misc/log_analyser/CMakeLists.txt @@ -0,0 +1,11 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(log_analyser WIN32 ${SRC} log_analyser.rc) + +TARGET_LINK_LIBRARIES(log_analyser ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(log_analyser "NeL, Tools, Misc: log_analyser") +NL_ADD_RUNTIME_FLAGS(log_analyser) + +ADD_DEFINITIONS(${MFC_DEFINITIONS}) + +INSTALL(TARGETS log_analyser RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/log_analyser_plug_ins/CMakeLists.txt b/code/nel/tools/misc/log_analyser_plug_ins/CMakeLists.txt new file mode 100644 index 000000000..e01cdbcfc --- /dev/null +++ b/code/nel/tools/misc/log_analyser_plug_ins/CMakeLists.txt @@ -0,0 +1 @@ +SUBDIRS(extract_warnings) diff --git a/code/nel/tools/misc/log_analyser_plug_ins/extract_warnings/CMakeLists.txt b/code/nel/tools/misc/log_analyser_plug_ins/extract_warnings/CMakeLists.txt new file mode 100644 index 000000000..34f653f30 --- /dev/null +++ b/code/nel/tools/misc/log_analyser_plug_ins/extract_warnings/CMakeLists.txt @@ -0,0 +1,11 @@ +FILE(GLOB SRC *.cpp *.h ${CMAKE_SOURCE_DIR}/nelns/admin_executor_service/log_report.cpp) + +ADD_LIBRARY(extract_warnings MODULE ${SRC} extract_warnings.def) + +TARGET_LINK_LIBRARIES(extract_warnings ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(extract_warnings "NeL, Tools, Misc: extract_warnings") +NL_ADD_RUNTIME_FLAGS(extract_warnings) + +NL_ADD_LIB_SUFFIX(extract_warnings) + +INSTALL(TARGETS extract_warnings RUNTIME DESTINATION bin LIBRARY DESTINATION lib/log_analyser COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/message_box/CMakeLists.txt b/code/nel/tools/misc/message_box/CMakeLists.txt new file mode 100644 index 000000000..cd2eb6623 --- /dev/null +++ b/code/nel/tools/misc/message_box/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(message_box WIN32 ${SRC}) + +TARGET_LINK_LIBRARIES(message_box ${PLATFORM_LINKFLAGS}) +NL_DEFAULT_PROPS(message_box "NeL, Tools, Misc: message_box") +NL_ADD_RUNTIME_FLAGS(message_box) + +INSTALL(TARGETS message_box RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/multi_cd_setup_fix/CMakeLists.txt b/code/nel/tools/misc/multi_cd_setup_fix/CMakeLists.txt new file mode 100644 index 000000000..638a1381b --- /dev/null +++ b/code/nel/tools/misc/multi_cd_setup_fix/CMakeLists.txt @@ -0,0 +1,9 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(multi_cd_setup_fix WIN32 ${SRC} multi_cd_setup_fix.rc) + +TARGET_LINK_LIBRARIES(multi_cd_setup_fix ${PLATFORM_LINKFLAGS}) +NL_DEFAULT_PROPS(multi_cd_setup_fix "NeL, Tools, Misc: multi_cd_setup_fix") +NL_ADD_RUNTIME_FLAGS(multi_cd_setup_fix) + +INSTALL(TARGETS multi_cd_setup_fix RUNTIME DESTINATION bin COMPONENT toolsmisc) diff --git a/code/nel/tools/misc/words_dic/CMakeLists.txt b/code/nel/tools/misc/words_dic/CMakeLists.txt new file mode 100644 index 000000000..980f716cb --- /dev/null +++ b/code/nel/tools/misc/words_dic/CMakeLists.txt @@ -0,0 +1,15 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(words_dic WIN32 ${SRC} words_dic.rc) + +TARGET_LINK_LIBRARIES(words_dic ${PLATFORM_LINKFLAGS} nelmisc) +NL_DEFAULT_PROPS(words_dic "NeL, Tools, Misc: words_dic") +NL_ADD_RUNTIME_FLAGS(words_dic) + +ADD_DEFINITIONS(${MFC_DEFINITIONS}) + +IF(WITH_PCH) + ADD_NATIVE_PRECOMPILED_HEADER(words_dic ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.h ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.cpp) +ENDIF(WITH_PCH) + +INSTALL(TARGETS words_dic RUNTIME DESTINATION bin COMPONENT toolsmisc)