SIEdit/lib/CMakeLists.txt

40 lines
839 B
Text
Raw Normal View History

2022-06-24 13:46:25 -04:00
option(LIBWEAVER_BUILD_DOXYGEN "Build Doxygen documentation" OFF)
set(LIBWEAVER_SOURCES
core.cpp
core.h
2022-07-18 14:25:00 -04:00
file.cpp
file.h
2022-07-18 03:27:00 -04:00
info.h
2022-07-11 00:16:20 -04:00
interleaf.cpp
interleaf.h
object.cpp
object.h
2022-07-03 11:57:43 -04:00
sitypes.cpp
sitypes.h
2022-06-23 21:36:00 -04:00
types.h
2022-07-17 21:51:16 -04:00
util.h
2022-06-23 21:36:00 -04:00
)
2022-06-24 13:46:25 -04:00
add_library(libweaver SHARED
${LIBWEAVER_SOURCES}
)
2022-06-23 21:36:00 -04:00
target_compile_definitions(libweaver PRIVATE LIBWEAVER_LIBRARY)
2022-07-17 21:51:16 -04:00
if (NOT MSVC)
target_compile_options(libweaver PRIVATE -Werror -Wall -Wextra -Wno-unused-parameter)
endif()
2022-06-23 21:36:00 -04:00
set_target_properties(libweaver PROPERTIES
CXX_STANDARD 98
CXX_STANDARD_REQUIRED ON
)
2022-06-24 13:46:25 -04:00
if(LIBWEAVER_BUILD_DOXYGEN)
find_package(Doxygen)
set(DOXYGEN_PROJECT_NAME "libweaver")
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/docs")
set(DOXYGEN_EXTRACT_ALL "YES")
set(DOXYGEN_EXTRACT_PRIVATE "YES")
doxygen_add_docs(docs ALL ${LIBWEAVER_SOURCES})
endif()