|
@@ -11,14 +11,14 @@
|
|
##########################################################
|
|
##########################################################
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.17)
|
|
cmake_minimum_required(VERSION 3.17)
|
|
-project(ls_std VERSION 2023.1.0)
|
|
|
|
|
|
+project(ls-std VERSION 2023.1.0)
|
|
|
|
|
|
-set(MODULE_NAME_BOXING ls_std_boxing)
|
|
|
|
-set(MODULE_NAME_CORE ls_std_core)
|
|
|
|
-set(MODULE_NAME_ENCODING ls_std_encoding)
|
|
|
|
-set(MODULE_NAME_EVENT ls_std_event)
|
|
|
|
-set(MODULE_NAME_IO ls_std_io)
|
|
|
|
-set(MODULE_NAME_TIME ls_std_time)
|
|
|
|
|
|
+set(MODULE_NAME_BOXING ls-std-boxing)
|
|
|
|
+set(MODULE_NAME_CORE ls-std-core)
|
|
|
|
+set(MODULE_NAME_ENCODING ls-std-encoding)
|
|
|
|
+set(MODULE_NAME_EVENT ls-std-event)
|
|
|
|
+set(MODULE_NAME_IO ls-std-io)
|
|
|
|
+set(MODULE_NAME_TIME ls-std-time)
|
|
|
|
|
|
set(GOOGLE_TEST_MODULE googletest-1.11.0)
|
|
set(GOOGLE_TEST_MODULE googletest-1.11.0)
|
|
|
|
|
|
@@ -28,9 +28,9 @@ set(GOOGLE_TEST_MODULE googletest-1.11.0)
|
|
|
|
|
|
option(LS_STD_BUILD_WITH_TESTS "Build project with tests..." OFF)
|
|
option(LS_STD_BUILD_WITH_TESTS "Build project with tests..." OFF)
|
|
option(LS_STD_BUILD_WITH_SUPPORTED_COMPILER "Build project with supported compiler only..." ON)
|
|
option(LS_STD_BUILD_WITH_SUPPORTED_COMPILER "Build project with supported compiler only..." ON)
|
|
-option(LS_STD_BUILD_STATIC "Build ls_std static library..." ON)
|
|
|
|
-option(LS_STD_BUILD_SHARED "Build ls_std shared library..." OFF)
|
|
|
|
-option(LS_STD_BUILD_MODULE "Build ls_std module library..." OFF)
|
|
|
|
|
|
+option(LS_STD_BUILD_STATIC "Build ls-std static library..." ON)
|
|
|
|
+option(LS_STD_BUILD_SHARED "Build ls-std shared library..." OFF)
|
|
|
|
+option(LS_STD_BUILD_MODULE "Build ls-std module library..." OFF)
|
|
|
|
|
|
set(TARGET_COUNTER 0)
|
|
set(TARGET_COUNTER 0)
|
|
|
|
|
|
@@ -137,49 +137,49 @@ endif ()
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
|
|
|
|
set(SOURCE_FILES_BOXING
|
|
set(SOURCE_FILES_BOXING
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Boolean.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Double.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Float.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Integer.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Long.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/String.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/Boolean.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/Double.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/Float.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/Integer.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/Long.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/boxing/String.cpp)
|
|
|
|
|
|
set(SOURCE_FILES_CORE
|
|
set(SOURCE_FILES_CORE
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/core/Class.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/core/Version.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/Class.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/Version.cpp)
|
|
|
|
|
|
set(SOURCE_FILES_ENCODING
|
|
set(SOURCE_FILES_ENCODING
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/encoding/Base64.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/encoding/Base64.cpp)
|
|
|
|
|
|
set(SOURCE_FILES_EVENT
|
|
set(SOURCE_FILES_EVENT
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/event/serialization/SerializableJsonEvent.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/event/Event.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/event/EventHandler.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/event/EventManager.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/event/Narrator.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/serialization/SerializableJsonEvent.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/Event.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/EventHandler.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/EventManager.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/Narrator.cpp)
|
|
|
|
|
|
set(SOURCE_FILES_IO
|
|
set(SOURCE_FILES_IO
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvDocument.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvFileReader.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvPair.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvParser.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/logging/Logger.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/logging/LogLevel.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlAttribute.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlDeclaration.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlDocument.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlNode.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlParser.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XmlReader.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/File.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileOutputStream.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileReader.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileWriter.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/StandardOutputWriter.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/StorableFile.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/kv/KvDocument.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/kv/KvFileReader.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/kv/KvPair.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/kv/KvParser.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/logging/Logger.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/logging/LogLevel.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlAttribute.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlDeclaration.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlDocument.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlNode.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlParser.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/xml/XmlReader.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/File.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/FileOutputStream.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/FileReader.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/FileWriter.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/StandardOutputWriter.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/StorableFile.cpp)
|
|
|
|
|
|
set(SOURCE_FILES_TIME
|
|
set(SOURCE_FILES_TIME
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/time/Date.cpp)
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/Date.cpp)
|
|
|
|
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
@@ -208,7 +208,7 @@ if (${LS_STD_BUILD_WITH_TESTS})
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IncompleteJsonExceptionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IncompleteJsonExceptionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/NullPointerExceptionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/NullPointerExceptionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/utils/RegexUtilsTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/utils/RegexUtilsTest.cpp
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/utils/STLUtilsTest.cpp
|
|
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/utils/StlUtilsTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/ClassTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/ClassTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/LibraryVersionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/LibraryVersionTest.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/VersionTest.cpp)
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/VersionTest.cpp)
|
|
@@ -275,7 +275,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_BOXING}: Building tests...")
|
|
message("${MODULE_NAME_BOXING}: Building tests...")
|
|
- add_executable(${MODULE_NAME_BOXING}_test ${TEST_FILES_BOXING})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_BOXING}-test ${TEST_FILES_BOXING})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -284,7 +284,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_CORE}: Building tests...")
|
|
message("${MODULE_NAME_CORE}: Building tests...")
|
|
- add_executable(${MODULE_NAME_CORE}_test ${TEST_FILES_CORE})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_CORE}-test ${TEST_FILES_CORE})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -293,7 +293,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_ENCODING}: Building tests...")
|
|
message("${MODULE_NAME_ENCODING}: Building tests...")
|
|
- add_executable(${MODULE_NAME_ENCODING}_test ${TEST_FILES_ENCODING})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_ENCODING}-test ${TEST_FILES_ENCODING})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -302,7 +302,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_EVENT}: Building tests...")
|
|
message("${MODULE_NAME_EVENT}: Building tests...")
|
|
- add_executable(${MODULE_NAME_EVENT}_test ${TEST_FILES_EVENT})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_EVENT}-test ${TEST_FILES_EVENT})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -311,7 +311,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_IO}: Building tests...")
|
|
message("${MODULE_NAME_IO}: Building tests...")
|
|
- add_executable(${MODULE_NAME_IO}_test ${TEST_FILES_IO})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_IO}-test ${TEST_FILES_IO})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -320,7 +320,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_TIME}: Building tests...")
|
|
message("${MODULE_NAME_TIME}: Building tests...")
|
|
- add_executable(${MODULE_NAME_TIME}_test ${TEST_FILES_TIME})
|
|
|
|
|
|
+ add_executable(${MODULE_NAME_TIME}-test ${TEST_FILES_TIME})
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -329,7 +329,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${PROJECT_NAME}: Building tests...")
|
|
message("${PROJECT_NAME}: Building tests...")
|
|
- add_executable(${PROJECT_NAME}_test
|
|
|
|
|
|
+ add_executable(${PROJECT_NAME}-test
|
|
${TEST_FILES_BOXING}
|
|
${TEST_FILES_BOXING}
|
|
${TEST_FILES_CORE}
|
|
${TEST_FILES_CORE}
|
|
${TEST_FILES_ENCODING}
|
|
${TEST_FILES_ENCODING}
|
|
@@ -355,18 +355,18 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_BOXING} library version ${PROJE
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_BOXING}" STATIC ${SOURCE_FILES_BOXING})
|
|
add_library("${MODULE_NAME_BOXING}" STATIC ${SOURCE_FILES_BOXING})
|
|
- set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_BOXING}" SHARED ${SOURCE_FILES_BOXING})
|
|
add_library("${MODULE_NAME_BOXING}" SHARED ${SOURCE_FILES_BOXING})
|
|
target_link_libraries("${MODULE_NAME_BOXING}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_BOXING}" ${MODULE_NAME_CORE})
|
|
- set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_BOXING}" MODULE ${SOURCE_FILES_BOXING})
|
|
add_library("${MODULE_NAME_BOXING}" MODULE ${SOURCE_FILES_BOXING})
|
|
- set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -377,17 +377,17 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_CORE} library version ${PROJECT
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_CORE}" STATIC ${SOURCE_FILES_CORE})
|
|
add_library("${MODULE_NAME_CORE}" STATIC ${SOURCE_FILES_CORE})
|
|
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_CORE}" SHARED ${SOURCE_FILES_CORE})
|
|
add_library("${MODULE_NAME_CORE}" SHARED ${SOURCE_FILES_CORE})
|
|
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_CORE}" MODULE ${SOURCE_FILES_CORE})
|
|
add_library("${MODULE_NAME_CORE}" MODULE ${SOURCE_FILES_CORE})
|
|
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -398,25 +398,25 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_ENCODING} library version ${PRO
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_ENCODING}" STATIC ${SOURCE_FILES_ENCODING})
|
|
add_library("${MODULE_NAME_ENCODING}" STATIC ${SOURCE_FILES_ENCODING})
|
|
- set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_ENCODING}" SHARED ${SOURCE_FILES_ENCODING})
|
|
add_library("${MODULE_NAME_ENCODING}" SHARED ${SOURCE_FILES_ENCODING})
|
|
- set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_ENCODING}" MODULE ${SOURCE_FILES_ENCODING})
|
|
add_library("${MODULE_NAME_ENCODING}" MODULE ${SOURCE_FILES_ENCODING})
|
|
- set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
# CLI base64
|
|
# CLI base64
|
|
|
|
|
|
-add_executable(cli_base64
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/encoding/cli/cli_base64_main.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/encoding/Base64.cpp
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/core/Version.cpp)
|
|
|
|
|
|
+add_executable(cli-base64
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/encoding/cli/cli-base64-main.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/encoding/Base64.cpp
|
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/Version.cpp)
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
# Build Library (event)
|
|
# Build Library (event)
|
|
@@ -426,18 +426,18 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_EVENT} library version ${PROJEC
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_EVENT}" STATIC ${SOURCE_FILES_EVENT})
|
|
add_library("${MODULE_NAME_EVENT}" STATIC ${SOURCE_FILES_EVENT})
|
|
- set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_EVENT}" SHARED ${SOURCE_FILES_EVENT})
|
|
add_library("${MODULE_NAME_EVENT}" SHARED ${SOURCE_FILES_EVENT})
|
|
target_link_libraries("${MODULE_NAME_EVENT}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_EVENT}" ${MODULE_NAME_CORE})
|
|
- set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_EVENT}" MODULE ${SOURCE_FILES_EVENT})
|
|
add_library("${MODULE_NAME_EVENT}" MODULE ${SOURCE_FILES_EVENT})
|
|
- set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -448,18 +448,18 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_IO} library version ${PROJECT_V
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_IO}" STATIC ${SOURCE_FILES_IO})
|
|
add_library("${MODULE_NAME_IO}" STATIC ${SOURCE_FILES_IO})
|
|
- set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_IO}" SHARED ${SOURCE_FILES_IO})
|
|
add_library("${MODULE_NAME_IO}" SHARED ${SOURCE_FILES_IO})
|
|
target_link_libraries("${MODULE_NAME_IO}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_IO}" ${MODULE_NAME_CORE})
|
|
- set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_IO}" MODULE ${SOURCE_FILES_IO})
|
|
add_library("${MODULE_NAME_IO}" MODULE ${SOURCE_FILES_IO})
|
|
- set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
##########################################################
|
|
##########################################################
|
|
@@ -470,18 +470,18 @@ message("${PROJECT_NAME}: Building ${MODULE_NAME_TIME} library version ${PROJECT
|
|
|
|
|
|
if (${LS_STD_BUILD_STATIC})
|
|
if (${LS_STD_BUILD_STATIC})
|
|
add_library("${MODULE_NAME_TIME}" STATIC ${SOURCE_FILES_TIME})
|
|
add_library("${MODULE_NAME_TIME}" STATIC ${SOURCE_FILES_TIME})
|
|
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_SHARED})
|
|
if (${LS_STD_BUILD_SHARED})
|
|
add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME})
|
|
add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
|
|
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_MODULE})
|
|
if (${LS_STD_BUILD_MODULE})
|
|
add_library("${MODULE_NAME_TIME}" MODULE ${SOURCE_FILES_TIME})
|
|
add_library("${MODULE_NAME_TIME}" MODULE ${SOURCE_FILES_TIME})
|
|
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "_d")
|
|
|
|
|
|
+ set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
|
|
endif ()
|
|
endif ()
|
|
|
|
|
|
####################################################################################################################
|
|
####################################################################################################################
|
|
@@ -498,7 +498,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_BOXING}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_BOXING}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_BOXING}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_BOXING}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -512,7 +512,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_CORE}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_CORE}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_CORE}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_CORE}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -525,7 +525,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_ENCODING}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_ENCODING}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_ENCODING}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_ENCODING}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -539,7 +539,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_EVENT}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_EVENT}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_EVENT}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_EVENT}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -553,7 +553,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_IO}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_IO}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_IO}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_IO}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -567,7 +567,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${MODULE_NAME_TIME}: Linking libraries for test application...")
|
|
message("${MODULE_NAME_TIME}: Linking libraries for test application...")
|
|
- target_link_libraries(${MODULE_NAME_TIME}_test
|
|
|
|
|
|
+ target_link_libraries(${MODULE_NAME_TIME}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|
|
@@ -581,7 +581,7 @@ endif ()
|
|
|
|
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
if (${LS_STD_BUILD_WITH_TESTS})
|
|
message("${PROJECT_NAME}: Linking libraries for test application...")
|
|
message("${PROJECT_NAME}: Linking libraries for test application...")
|
|
- target_link_libraries(${PROJECT_NAME}_test
|
|
|
|
|
|
+ target_link_libraries(${PROJECT_NAME}-test
|
|
gtest
|
|
gtest
|
|
gmock
|
|
gmock
|
|
gtest_main
|
|
gtest_main
|