123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873 |
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # General
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Basic
- ##########################################################
- cmake_minimum_required(VERSION 3.17)
- project(ls-std VERSION 2023.3.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(GOOGLE_TEST_MODULE googletest-1.11.0)
- set(CLI_NAME_BASE64 cli-base64)
- ##########################################################
- # Options
- ##########################################################
- 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_STATIC "Build ls-std static library..." ON)
- option(LS_STD_BUILD_SHARED "Build ls-std shared library..." OFF)
- option(LS_STD_BUILD_WITH_JNI "Build ls-std shared library with JNI..." OFF)
- set(TARGET_COUNTER 0)
- if (${LS_STD_BUILD_STATIC})
- math(EXPR TARGET_COUNTER "${TARGET_COUNTER} + 1")
- set(GOAL "static library")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- math(EXPR TARGET_COUNTER "${TARGET_COUNTER} + 1")
- set(GOAL "shared library")
- endif ()
- message("${PROJECT_NAME}: [Goal] ${GOAL}")
- if (TARGET_COUNTER GREATER 1)
- message("${PROJECT_NAME}: [Error] only one goal supported at the same time!")
- return()
- endif ()
- if (TARGET_COUNTER EQUAL 0)
- message("${PROJECT_NAME}: [Error] no goal selected!")
- return()
- endif ()
- ##########################################################
- # JNI flag check
- ##########################################################
- if (${LS_STD_BUILD_WITH_JNI})
- if (${LS_STD_BUILD_SHARED})
- message("${PROJECT_NAME}: build with JNI support...")
- else ()
- message("${PROJECT_NAME}: [Error] JNI support requires shared build goal!")
- return()
- endif ()
- endif ()
- ##########################################################
- # Compiler Settings
- ##########################################################
- message("${PROJECT_NAME}: Setting compiler flags...")
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- ##########################################################
- # Compiler Support
- ##########################################################
- if (${LS_STD_BUILD_WITH_SUPPORTED_COMPILER})
- message("${PROJECT_NAME}: build with compiler support...")
- # define supported compilers
- if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR
- ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU OR
- ${CMAKE_CXX_COMPILER_ID} STREQUAL Clang OR
- ${CMAKE_CXX_COMPILER_ID} STREQUAL AppleClang)
- message("${PROJECT_NAME}: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is supported...")
- else ()
- message("${PROJECT_NAME}: [Error] ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is not supported... terminated!")
- return()
- endif ()
- endif ()
- ######################################################
- # Find Packages
- ######################################################
- if (${LS_STD_BUILD_WITH_JNI})
- if (DEFINED ENV{JAVA_HOME})
- message("JAVA_HOME found in '$ENV{JAVA_HOME}' location...")
- else ()
- message("[Error] JAVA_HOME not found!")
- return()
- endif ()
- message("${PROJECT_NAME}: finding JNI package in '$ENV{JAVA_HOME}'...")
- find_package(JNI REQUIRED)
- endif ()
- ######################################################
- # Include Directories
- ######################################################
- message("${PROJECT_NAME}: Adding include directories...")
- if (${LS_STD_BUILD_WITH_JNI})
- include_directories(${JAVA_INCLUDE_PATH})
- include_directories(${JAVA_INCLUDE_PATH2})
- include_directories(${JAVA_AWT_INCLUDE_PATH})
- endif ()
- if (${LS_STD_BUILD_WITH_TESTS})
- include_directories(${CMAKE_CURRENT_SOURCE_DIR}/test)
- include_directories(${CMAKE_CURRENT_LIST_DIR}/test/lib/${GOOGLE_TEST_MODULE}/googletest/include)
- include_directories(${CMAKE_CURRENT_LIST_DIR}/test/lib/${GOOGLE_TEST_MODULE}/googlemock/include)
- endif ()
- include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
- ######################################################
- # Add Other CMake Dependencies
- ######################################################
- message("${PROJECT_NAME}: Adding additional cmake dependencies...")
- if (${LS_STD_BUILD_WITH_TESTS})
- add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/test/lib/${GOOGLE_TEST_MODULE})
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Source Files Modularization
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- 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)
- set(SOURCE_FILES_CORE
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/evaluator/EmptyStringArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/evaluator/NullPointerArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/evaluator/NullPointerEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/EventNotHandledException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/Exception.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/ExceptionMessage.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/FileNotFoundException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/FileOperationException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/IllegalArgumentException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/IllegalArithmeticOperationException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/IncompleteJsonException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/IndexOutOfBoundsException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/NotImplementedException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/exception/NullPointerException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IBoxing.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IEncoding.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IListener.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IReader.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/ISerializable.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IStorable.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IWriter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/Class.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/ConditionalFunctionExecutor.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/LibraryVersion.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/Version.cpp)
- set(SOURCE_FILES_CORE_JNI
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/interface/IJniApi.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/jni/JniApi.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/jni/JniClass.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/jni/JniClassParameter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/jni/JniMethod.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/core/jni/JniReturnValue.cpp)
- set(SOURCE_FILES_ENCODING
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/encoding/Base64.cpp)
- set(SOURCE_FILES_EVENT
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/Event.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/EventListener.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/event/EventManager.cpp)
- set(SOURCE_FILES_IO
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/evaluator/FileExistenceEvaluator.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/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/evaluator/SectionPairRowArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/evaluator/SectionPairRowListValueArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/evaluator/SectionPairRowSingleValueArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/evaluator/SectionPairSectionArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/evaluator/SectionPairValueArgumentEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairDocument.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairRow.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairRowListValue.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairRowSingleValue.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairRowValue.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/model/SectionPairSection.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/reader/SectionPairFileReader.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/reader/SectionPairFileReaderParameter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairDocument.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairParameter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairRow.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/serialization/SerializableSectionPairSection.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairDocumentValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairFileExtensionValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairIdentifierValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairRowListValueValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairRowSingleValueValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairRowValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairSectionValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/validator/SectionPairValueValidator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/section-pair/SectionPairMessageFormatter.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/XmlParseParameter.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/FilePathSeparator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/io/FilePathSeparatorMatch.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/NewLine.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
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/common/DateParameter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/common/DateParameterMapper.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/IClock.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/SystemTime.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/SystemTimeParameter.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/Date.cpp)
- set(SOURCE_FILES_LINUX_TIME)
- set(SOURCE_FILES_WINDOWS_TIME)
- if (UNIX OR APPLE)
- message("${MODULE_NAME_TIME}: Add UNIX files for time module...")
- set(SOURCE_FILES_LINUX_TIME
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/PosixClock.cpp)
- else (WIN32)
- message("${MODULE_NAME_TIME}: Add Windows files for time module...")
- set(SOURCE_FILES_WINDOWS_TIME
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/WindowsClock.cpp)
- endif ()
- set(SOURCE_FILES_TIME_JNI
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/common/jni/JniDateParameterMapper.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/time/system-time/jni/com_lynarstudios_ls_std_time_systemtime_SystemTimeJni.cpp)
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Unit Test Files Modularization
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- set(UNIT_TEST_FILES_BOXING
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/BooleanTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/DoubleTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/FloatTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/IntegerTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/LongTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/boxing/StringTest.cpp)
- set(UNIT_TEST_FILES_CORE
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/EmptyStringArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/IndexOutOfBoundsEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/NullPointerArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/NullPointerEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/RawNullPointerArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/evaluator/RawNullPointerEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/EventNotHandledExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/ExceptionMessageTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/FileNotFoundExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/FileOperationExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IllegalArgumentExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IllegalArithmeticOperationExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IncompleteJsonExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/IndexOutOfBoundsExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/NotImplementedExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/exception/NullPointerExceptionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/ClassTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/ConditionalFunctionExecutorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/LibraryVersionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/VersionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/core/ClassWrapper.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/core/MathOddValidator.cpp)
- set(UNIT_TEST_FILES_CORE_JNI
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/jni/JniApiTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/jni/JniClassParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/jni/JniClassTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/jni/JniMethodTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/core/jni/JniReturnValueTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/core/jni/MockJniApi.cpp)
- set(UNIT_TEST_FILES_ENCODING
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/encoding/Base64Test.cpp)
- set(UNIT_TEST_FILES_EVENT
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/event/EventListenerTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/event/EventManagerTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/event/EventTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/event/ChangeColorEvent.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/event/OnClickEvent.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/event/Button.cpp)
- set(UNIT_TEST_FILES_IO
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/evaluator/FileExistenceEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/logging/LoggerTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/logging/LogLevelTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairRowArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairRowListValueArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairRowSingleValueArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairSectionArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/evaluator/SectionPairValueArgumentEvaluatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/model/SectionPairDocumentTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/model/SectionPairRowListValueTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/model/SectionPairRowSingleValueTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/model/SectionPairRowTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/model/SectionPairSectionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/reader/SectionPairFileReaderParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/reader/SectionPairFileReaderTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairDocumentTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairRowListValueTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairRowSingleValueTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairRowTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/serialization/SerializableSectionPairSectionTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairDocumentValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairFileExtensionValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairIdentifierValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairRowListValueValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairRowSingleValueValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairRowValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairSectionValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/validator/SectionPairValueValidatorTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/SectionPairMessageFormatterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlAttributeTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlDeclarationTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlDocumentTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlNodeTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlParseParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlParserTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlParserTestWrapperTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/xml/XmlReaderTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/FileOutputStreamTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/FileReaderTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/FileTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/FileWriterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/StandardOutputWriterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/StorableFileTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/section-pair/SectionPairDocumentProvider.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/section-pair/SectionPairSectionProvider.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/section-pair/SerializableSectionPairRowProvider.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/xml/TestDataFactory.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/xml/XmlParserTestWrapper.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/MockFileExistenceEvaluator.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/io/MockFileReader.cpp)
- set(UNIT_TEST_FILES_SERIALIZATION
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/serialization/JsonTest.cpp)
- set(UNIT_TEST_FILES_TIME
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/common/DateParameterMapperTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/common/DateParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeParameterTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/system-time/SystemTimeTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/time/DateTest.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/time/system-time/MockClock.cpp)
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Unit Test Suite Builds
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Unit Build Tests (boxing)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_BOXING}: Building unit tests...")
- add_executable(${MODULE_NAME_BOXING}-unit-test ${UNIT_TEST_FILES_BOXING})
- endif ()
- ##########################################################
- # Unit Build Tests (core)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- if (${LS_STD_BUILD_WITH_JNI})
- message("${MODULE_NAME_CORE}: Building unit tests with JNI support...")
- add_executable(${MODULE_NAME_CORE}-unit-test ${UNIT_TEST_FILES_CORE} ${UNIT_TEST_FILES_CORE_JNI})
- else ()
- message("${MODULE_NAME_CORE}: Building unit tests...")
- add_executable(${MODULE_NAME_CORE}-unit-test ${UNIT_TEST_FILES_CORE})
- endif ()
- endif ()
- ##########################################################
- # Unit Build Tests (encoding)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_ENCODING}: Building unit tests...")
- add_executable(${MODULE_NAME_ENCODING}-unit-test ${UNIT_TEST_FILES_ENCODING})
- endif ()
- ##########################################################
- # Unit Build Tests (event)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_EVENT}: Building unit tests...")
- add_executable(${MODULE_NAME_EVENT}-unit-test ${UNIT_TEST_FILES_EVENT})
- endif ()
- ##########################################################
- # Unit Build Tests (io)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_IO}: Building unit tests...")
- add_executable(${MODULE_NAME_IO}-unit-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${UNIT_TEST_FILES_IO})
- endif ()
- ##########################################################
- # Unit Build Tests (time)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_TIME}: Building unit tests...")
- add_executable(${MODULE_NAME_TIME}-unit-test ${UNIT_TEST_FILES_TIME})
- endif ()
- ##########################################################
- # Unit Build Tests (all)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- if (${LS_STD_BUILD_WITH_JNI})
- message("${PROJECT_NAME}: Building unit tests with JNI support...")
- add_executable(${PROJECT_NAME}-unit-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${UNIT_TEST_FILES_BOXING}
- ${UNIT_TEST_FILES_CORE}
- ${UNIT_TEST_FILES_CORE_JNI}
- ${UNIT_TEST_FILES_ENCODING}
- ${UNIT_TEST_FILES_EVENT}
- ${UNIT_TEST_FILES_IO}
- ${UNIT_TEST_FILES_SERIALIZATION}
- ${UNIT_TEST_FILES_TIME})
- else ()
- message("${PROJECT_NAME}: Building unit tests...")
- add_executable(${PROJECT_NAME}-unit-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${UNIT_TEST_FILES_BOXING}
- ${UNIT_TEST_FILES_CORE}
- ${UNIT_TEST_FILES_ENCODING}
- ${UNIT_TEST_FILES_EVENT}
- ${UNIT_TEST_FILES_IO}
- ${UNIT_TEST_FILES_SERIALIZATION}
- ${UNIT_TEST_FILES_TIME})
- endif ()
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Integration Test Files Modularization
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- set(INTEGRATION_TEST_FILES_IO
- ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/section-pair/reader/SectionPairFileReaderIT.cpp)
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Integration Test Suite Builds
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Integration Build Tests (io)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_IO}: Building integration tests...")
- add_executable(${MODULE_NAME_IO}-integration-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${INTEGRATION_TEST_FILES_IO})
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Whole Test Suite Builds
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- if (${LS_STD_BUILD_WITH_JNI})
- message("${PROJECT_NAME}: Building all tests...")
- add_executable(${PROJECT_NAME}-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${UNIT_TEST_FILES_BOXING}
- ${UNIT_TEST_FILES_CORE}
- ${UNIT_TEST_FILES_CORE_JNI}
- ${UNIT_TEST_FILES_ENCODING}
- ${UNIT_TEST_FILES_EVENT}
- ${UNIT_TEST_FILES_IO}
- ${INTEGRATION_TEST_FILES_IO}
- ${UNIT_TEST_FILES_SERIALIZATION}
- ${UNIT_TEST_FILES_TIME})
- else ()
- message("${PROJECT_NAME}: Building all tests with JNI support...")
- add_executable(${PROJECT_NAME}-test
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestException.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/TestHelper.cpp
- ${UNIT_TEST_FILES_BOXING}
- ${UNIT_TEST_FILES_CORE}
- ${UNIT_TEST_FILES_ENCODING}
- ${UNIT_TEST_FILES_EVENT}
- ${UNIT_TEST_FILES_IO}
- ${INTEGRATION_TEST_FILES_IO}
- ${UNIT_TEST_FILES_SERIALIZATION}
- ${UNIT_TEST_FILES_TIME})
- endif ()
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Build Library Binaries
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Build Library (boxing)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_BOXING} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_BOXING}" STATIC ${SOURCE_FILES_BOXING})
- set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- add_library("${MODULE_NAME_BOXING}" SHARED ${SOURCE_FILES_BOXING})
- target_link_libraries("${MODULE_NAME_BOXING}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_BOXING}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- ##########################################################
- # Build Library (core)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_CORE} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_CORE}" STATIC ${SOURCE_FILES_CORE})
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- if (${LS_STD_BUILD_WITH_JNI})
- message("${MODULE_NAME_CORE}: building with JNI...")
- add_library("${MODULE_NAME_CORE}" SHARED ${SOURCE_FILES_CORE} ${SOURCE_FILES_CORE_JNI})
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
- else ()
- add_library("${MODULE_NAME_CORE}" SHARED ${SOURCE_FILES_CORE})
- set_target_properties("${MODULE_NAME_CORE}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endif ()
- ##########################################################
- # Build Library (encoding)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_ENCODING} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_ENCODING}" STATIC ${SOURCE_FILES_ENCODING})
- set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- add_library("${MODULE_NAME_ENCODING}" SHARED ${SOURCE_FILES_ENCODING})
- target_link_libraries("${MODULE_NAME_ENCODING}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_ENCODING}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- # CLI base64
- add_executable(${CLI_NAME_BASE64}
- ${CMAKE_CURRENT_SOURCE_DIR}/source/ls-std/encoding/cli/cli-base64-main.cpp)
- ##########################################################
- # Build Library (event)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_EVENT} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_EVENT}" STATIC ${SOURCE_FILES_EVENT})
- set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- add_library("${MODULE_NAME_EVENT}" SHARED ${SOURCE_FILES_EVENT})
- target_link_libraries("${MODULE_NAME_EVENT}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_EVENT}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- ##########################################################
- # Build Library (io)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_IO} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_IO}" STATIC ${SOURCE_FILES_IO})
- set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- add_library("${MODULE_NAME_IO}" SHARED ${SOURCE_FILES_IO})
- target_link_libraries("${MODULE_NAME_IO}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_IO}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- ##########################################################
- # Build Library (time)
- ##########################################################
- message("${PROJECT_NAME}: Building ${MODULE_NAME_TIME} library version ${PROJECT_VERSION}...")
- if (${LS_STD_BUILD_STATIC})
- add_library("${MODULE_NAME_TIME}" STATIC ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME})
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- if (${LS_STD_BUILD_SHARED})
- if (${LS_STD_BUILD_WITH_JNI})
- message("${MODULE_NAME_TIME}: building with JNI...")
- add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME} ${SOURCE_FILES_TIME_JNI})
- target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
- else ()
- add_library("${MODULE_NAME_TIME}" SHARED ${SOURCE_FILES_TIME} ${SOURCE_FILES_LINUX_TIME} ${SOURCE_FILES_WINDOWS_TIME})
- target_link_libraries("${MODULE_NAME_TIME}" ${MODULE_NAME_CORE})
- set_target_properties("${MODULE_NAME_TIME}" PROPERTIES DEBUG_POSTFIX "-d")
- endif ()
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Unit Test Suite: Linking
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Unit Linking (boxing)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_BOXING}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_BOXING}-unit-test
- gtest
- gtest_main
- "${MODULE_NAME_BOXING}"
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (core)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_CORE}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_CORE}-unit-test
- gtest
- gmock
- gtest_main
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (encoding)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_ENCODING}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_ENCODING}-unit-test
- gtest
- gtest_main
- "${MODULE_NAME_ENCODING}"
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (event)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_EVENT}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_EVENT}-unit-test
- gtest
- gtest_main
- "${MODULE_NAME_EVENT}"
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (io)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_IO}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_IO}-unit-test
- gtest
- gmock
- gtest_main
- "${MODULE_NAME_IO}"
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (time)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_TIME}: Linking libraries for unit test application...")
- target_link_libraries(${MODULE_NAME_TIME}-unit-test
- gtest
- gmock
- gtest_main
- "${MODULE_NAME_TIME}"
- "${MODULE_NAME_CORE}")
- endif ()
- ##########################################################
- # Unit Linking (all)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${PROJECT_NAME}: Linking libraries for unit test application...")
- target_link_libraries(${PROJECT_NAME}-unit-test
- gtest
- gmock
- gtest_main
- "${MODULE_NAME_BOXING}"
- "${MODULE_NAME_ENCODING}"
- "${MODULE_NAME_EVENT}"
- "${MODULE_NAME_IO}"
- "${MODULE_NAME_TIME}"
- "${MODULE_NAME_CORE}")
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Integration Test Suite: Linking
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- ##########################################################
- # Integration Linking (io)
- ##########################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${MODULE_NAME_IO}: Linking libraries for integration test application...")
- target_link_libraries(${MODULE_NAME_IO}-integration-test
- gtest
- gtest_main
- "${MODULE_NAME_IO}"
- "${MODULE_NAME_CORE}")
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # Whole Test Suite: Linking
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- if (${LS_STD_BUILD_WITH_TESTS})
- message("${PROJECT_NAME}: Linking libraries for whole test application...")
- target_link_libraries(${PROJECT_NAME}-test
- gtest
- gmock
- gtest_main
- "${MODULE_NAME_BOXING}"
- "${MODULE_NAME_ENCODING}"
- "${MODULE_NAME_EVENT}"
- "${MODULE_NAME_IO}"
- "${MODULE_NAME_TIME}"
- "${MODULE_NAME_CORE}")
- endif ()
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- # CLI - Base64: Linking
- ####################################################################################################################
- ####################################################################################################################
- ####################################################################################################################
- target_link_libraries(${CLI_NAME_BASE64}
- "${MODULE_NAME_ENCODING}"
- "${MODULE_NAME_CORE}")
|