Added CMake for Release version 6.1.3

This commit is contained in:
Wodann 2018-08-02 11:02:06 -04:00
parent 4c64008fa5
commit c53c8e821f
28 changed files with 1534 additions and 0 deletions

View file

@ -0,0 +1,40 @@
#----------------------------------------------------------------
# Packages
#----------------------------------------------------------------
find_package(Qt5Xml REQUIRED)
#----------------------------------------------------------------
# Sources
#----------------------------------------------------------------
set(qwt_mathml_headers
include/qwt_mathml_text_engine.h
include/qwt_mml_document.h
)
set(qwt_mathml_sources
mathml/qwt_mathml_text_engine.cpp
mathml/qwt_mml_document.cpp
)
#----------------------------------------------------------------
# Target
#----------------------------------------------------------------
add_library(qwt_mathml SHARED ${qwt_mathml_headers} ${qwt_mathml_sources})
target_include_directories(qwt_mathml
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_compile_definitions(qwt_mathml
PUBLIC
$<$<BOOL:MSVC>:QWT_DLL>
PRIVATE
$<$<BOOL:MSVC>:QWT_MAKEDLL>
)
target_link_libraries(qwt_mathml
PRIVATE
Qt5::Xml
qwt
)