mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-13 10:42:56 +01:00
123977f106
* unit tests running with windows shared dll
* CMake automatically uses DLL runtime - remove cmake entries modifying
compiler flags
* missing DBUG vs DEBUG issue in Linux
* generated header added
* correction in CMake: Set HEADER_FILES correctly
* added static library option
* switched to powershell and included WORKING_DIRECTORY
* powershell use in windows and WORKING_DIRECTORY instead of cd
* Fixed appveyor.yml to use Release configuration and run unit tests
* trying to make appveyor work again ...
* make sure ERRORLEVEL is 0 when unit tests run successfully
* Still trying to fix appveyor ...
* Defaulting to shared library in linux, too
* Removed runtime loading test when g3log is not a shared library in linux
* Run unit tests verbosly using ctest.exe
* Disabled AggressiveThreadCallsDuringShutdown test
* Revert "Run unit tests verbosly using ctest.exe" (accidental commit)
This reverts commit b30513450d
.
* re-committing valid parts of reverted commit
* DBUG vs DEBUG fix moved to generated_definitions.hpp
* cleanup shared/static option
* clarify cmake build types regardless of type
* Added compile test for DEBUG and DBUG
* put back formatting
* Removed commented out /MD switches for MSVC
41 lines
1.9 KiB
CMake
41 lines
1.9 KiB
CMake
# ==========================================================================
|
|
# 2015 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
|
|
# with no warranties. This code is yours to share, use and modify with no
|
|
# strings attached and no restrictions or obligations.
|
|
#
|
|
# For more information see g3log/LICENSE or refer refer to http://unlicense.org
|
|
# ============================================================================*/
|
|
|
|
# Prerequisite : Options.cmake should run first
|
|
|
|
SET(HEADER "/** ==========================================================================
|
|
* 2015 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
|
|
* with no warranties. This code is yours to share, use and modify with no
|
|
* strings attached and no restrictions or obligations.
|
|
*
|
|
* For more information see g3log/LICENSE or refer refer to http://unlicense.org
|
|
* ============================================================================*/")
|
|
|
|
|
|
|
|
MESSAGE("")
|
|
MESSAGE("COMPILE_DEFINITIONS:\n\t[${G3_DEFINITIONS}]")
|
|
MESSAGE("")
|
|
SET(GENERATED_G3_DEFINITIONS "${CMAKE_CURRENT_BINARY_DIR}/include/g3log/generated_definitions.hpp")
|
|
file(REMOVE ${GENERATED_G3_DEFINITIONS} )
|
|
FILE(WRITE ${GENERATED_G3_DEFINITIONS} "// AUTO GENERATED MACRO DEFINITIONS FOR G3LOG\n\n")
|
|
FILE(APPEND ${GENERATED_G3_DEFINITIONS} "${HEADER}\n")
|
|
FILE(APPEND ${GENERATED_G3_DEFINITIONS} "#pragma once\n\n")
|
|
FILE(APPEND ${GENERATED_G3_DEFINITIONS} "// CMake induced definitions below. See g3log/Options.cmake for details.\n\n")
|
|
|
|
FOREACH(definition ${G3_DEFINITIONS} )
|
|
FILE(APPEND ${GENERATED_G3_DEFINITIONS} "#define ${definition}\n")
|
|
ENDFOREACH(definition)
|
|
|
|
MESSAGE("Generated ${GENERATED_G3_DEFINITIONS}")
|
|
file(READ ${GENERATED_G3_DEFINITIONS} generated_content)
|
|
|
|
MESSAGE("******************** START *************************")
|
|
MESSAGE(${generated_content})
|
|
MESSAGE("******************** END *************************")
|