Added a cmake file

This commit is contained in:
King_DuckZ 2012-10-28 01:09:17 +02:00
parent ae058ec717
commit ae575c27c1

19
CMakeLists.txt Normal file
View file

@ -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
)