mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
118 lines
2.1 KiB
CMake
118 lines
2.1 KiB
CMake
project(LibCore)
|
|
|
|
# CMake Unity Build
|
|
if (CVF_ENABLE_UNITY_BUILD)
|
|
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
|
set(CMAKE_UNITY_BUILD true)
|
|
endif()
|
|
|
|
# Use our strict compile flags
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CEE_STRICT_CXX_FLAGS}")
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-stringop-overflow")
|
|
endif()
|
|
|
|
set(CEE_HEADER_FILES
|
|
cvfArray.h
|
|
cvfArray.inl
|
|
cvfArrayWrapperConst.h
|
|
cvfArrayWrapperToEdit.h
|
|
cvfAssert.h
|
|
cvfBase.h
|
|
cvfBase64.h
|
|
cvfCharArray.h
|
|
cvfCodeLocation.h
|
|
cvfCollection.h
|
|
cvfCollection.inl
|
|
cvfColor3.h
|
|
cvfColor4.h
|
|
cvfConfigCore.h
|
|
cvfDebugTimer.h
|
|
cvfFlags.h
|
|
cvfFlags.inl
|
|
cvfFunctorRange.h
|
|
cvfLibCore.h
|
|
cvfLogDestination.h
|
|
cvfLogDestinationConsole.h
|
|
cvfLogDestinationFile.h
|
|
cvfLogEvent.h
|
|
cvfLogManager.h
|
|
cvfLogger.h
|
|
cvfMath.h
|
|
cvfMath.inl
|
|
cvfMatrix3.h
|
|
cvfMatrix3.inl
|
|
cvfMatrix4.h
|
|
cvfMatrix4.inl
|
|
cvfMutex.h
|
|
cvfObject.h
|
|
cvfObject.inl
|
|
cvfPlane.h
|
|
cvfProgramOptions.h
|
|
cvfPropertySet.h
|
|
cvfPropertySetCollection.h
|
|
cvfQuat.h
|
|
cvfQuat.inl
|
|
cvfRect.h
|
|
cvfRect.inl
|
|
cvfString.h
|
|
cvfSystem.h
|
|
cvfTBBControl.h
|
|
cvfTimer.h
|
|
cvfTrace.h
|
|
cvfValueArray.h
|
|
cvfVariant.h
|
|
cvfVector2.h
|
|
cvfVector2.inl
|
|
cvfVector3.h
|
|
cvfVector3.inl
|
|
cvfVector4.h
|
|
cvfVector4.inl
|
|
cvfVersion.h
|
|
)
|
|
|
|
set(CEE_SOURCE_FILES
|
|
cvfAssert.cpp
|
|
cvfBase64.cpp
|
|
cvfCharArray.cpp
|
|
cvfCodeLocation.cpp
|
|
cvfColor3.cpp
|
|
cvfColor4.cpp
|
|
cvfDebugTimer.cpp
|
|
cvfLogDestinationConsole.cpp
|
|
cvfLogDestinationFile.cpp
|
|
cvfLogEvent.cpp
|
|
cvfLogManager.cpp
|
|
cvfLogger.cpp
|
|
cvfMath.cpp
|
|
cvfMutex.cpp
|
|
cvfObject.cpp
|
|
cvfPlane.cpp
|
|
cvfProgramOptions.cpp
|
|
cvfPropertySet.cpp
|
|
cvfPropertySetCollection.cpp
|
|
cvfString.cpp
|
|
cvfSystem.cpp
|
|
cvfTimer.cpp
|
|
cvfTBBControl.cpp
|
|
cvfTrace.cpp
|
|
cvfVariant.cpp
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
# Our core library has dependencies on librt and libpthread for timers and mutex.
|
|
target_link_libraries(${PROJECT_NAME} -lrt -lpthread)
|
|
endif()
|
|
|
|
|
|
set(PROJECT_FILES ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})
|
|
|