From 1d492138fba25c5390a1ea43cbc63fc111089cd2 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 7 Feb 2016 16:28:23 +0100 Subject: [PATCH] Added: CMake file for bin2c --- code/CMakeModules/nel.cmake | 1 + code/tool/CMakeLists.txt | 1 + code/tool/bin2c/CMakeLists.txt | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 code/tool/CMakeLists.txt create mode 100644 code/tool/bin2c/CMakeLists.txt diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 59fbb3916..aeac7277d 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -258,6 +258,7 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS) OPTION(WITH_NELNS "Build NeL Network Services." OFF) OPTION(WITH_RYZOM "Build Ryzom Core." ON ) OPTION(WITH_SNOWBALLS "Build Snowballs." OFF) + OPTION(WITH_TOOLS "Build Tools" OFF) ENDMACRO(NL_SETUP_DEFAULT_OPTIONS) MACRO(NL_SETUP_NEL_DEFAULT_OPTIONS) diff --git a/code/tool/CMakeLists.txt b/code/tool/CMakeLists.txt new file mode 100644 index 000000000..5198e56c9 --- /dev/null +++ b/code/tool/CMakeLists.txt @@ -0,0 +1 @@ +ADD_SUBDIRECTORY(bin2c) diff --git a/code/tool/bin2c/CMakeLists.txt b/code/tool/bin2c/CMakeLists.txt new file mode 100644 index 000000000..adf2787d8 --- /dev/null +++ b/code/tool/bin2c/CMakeLists.txt @@ -0,0 +1,8 @@ +FILE(GLOB SRC *.cpp *.h) + +ADD_EXECUTABLE(bin2c ${SRC}) + +NL_DEFAULT_PROPS(bin2c "Tools: bin2c") +NL_ADD_RUNTIME_FLAGS(bin2c) + +INSTALL(TARGETS bin2c RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools)