diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..742a5ab --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +project (Loki CXX) + +if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + foreach (Config ${CMAKE_CONFIGURATION_TYPES}) + set(TEMP_CONFIG "CMAKE_CXX_FLAGS_${Config}") + set(TEMP_CONFIG "${TEMP_CONFIG}} -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic") + set(CMAKE_CXX_FLAGS_${Config} "${TEMP_CONFIG}") + endforeach(Config) +endif() + +add_library(${PROJECT_NAME} + src/StrongPtr.cpp + src/OrderedStatic.cpp + src/SafeFormat.cpp + src/Singleton.cpp + src/SmartPtr.cpp + src/LevelMutex.cpp + src/SmallObj.cpp +)