2017-10-11 12:41:29 -05:00
|
|
|
project (expressionparser)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
|
|
|
message(STATUS "MSVC: Enabled increased number of sections in object files")
|
|
|
|
endif()
|
|
|
|
|
2024-04-16 07:22:15 -05:00
|
|
|
if (CEE_USE_QT6)
|
|
|
|
find_package(Qt6 COMPONENTS REQUIRED Core)
|
|
|
|
set(QT_LIBRARIES Qt6::Core)
|
|
|
|
qt_standard_project_setup()
|
|
|
|
else()
|
|
|
|
find_package(Qt5 COMPONENTS REQUIRED Core)
|
|
|
|
set(QT_LIBRARIES Qt5::Core)
|
|
|
|
endif()
|
2018-11-26 04:27:58 -06:00
|
|
|
|
2017-10-11 12:41:29 -05:00
|
|
|
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()
|
2018-02-27 11:56:12 -06:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-05-28 07:11:08 -05:00
|
|
|
target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
|
2018-11-26 04:27:58 -06:00
|
|
|
|
2018-02-27 11:56:12 -06:00
|
|
|
source_group("" FILES ${PROJECT_FILES})
|