QGIS/external/astyle/CMakeLists.txt
Denis Rouzaud 1681dbde9a make ASTYLE with c++17
this fixes the compilation on my system (mac)
2021-03-10 04:11:53 +10:00

19 lines
411 B
CMake

set(ASTYLE_SRCS
astyle_main.cpp
ASBeautifier.cpp
ASEnhancer.cpp
ASFormatter.cpp
ASLocalizer.cpp
ASResource.cpp
)
# No warnings for astyle build
if(NOT MSVC)
set_source_files_properties(${ASTYLE_SRCS} PROPERTIES COMPILE_FLAGS -w)
endif()
add_executable(qgisstyle ${ASTYLE_SRCS})
set_target_properties(qgisstyle PROPERTIES
CXX_STANDARD 17
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/scripts
)