Added a cmake file
This commit is contained in:
parent
ae058ec717
commit
ae575c27c1
1 changed files with 19 additions and 0 deletions
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal 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
|
||||
)
|
Loading…
Reference in a new issue