mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-06 06:03:23 -06:00
25 lines
529 B
CMake
25 lines
529 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
|
|
project (expressionparser)
|
|
|
|
if(MSVC)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
|
message(STATUS "MSVC: Enabled increased number of sections in object files")
|
|
endif()
|
|
|
|
list (APPEND MAIN_SOURCE_FILES
|
|
ExpressionParser.h
|
|
ExpressionParser.cpp
|
|
ExpressionParserImpl.h
|
|
ExpressionParserImpl.cpp
|
|
)
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
STATIC
|
|
${MAIN_SOURCE_FILES}
|
|
)
|
|
|
|
if(MSVC)
|
|
set_target_properties(expressionparser PROPERTIES COMPILE_FLAGS "/wd4267")
|
|
endif()
|