solved link error with Visual Studio (upper/lower case mismatch in DEFINE was 'JKQtPlotter_LIB_...' but should be 'JKQTPLOTTER_LIB_...')

This commit is contained in:
jkriege2 2019-11-24 10:42:23 +01:00
parent 5133d4ab51
commit 29b1c5aa37
4 changed files with 9 additions and 4 deletions

3
.gitignore vendored
View File

@ -96,3 +96,6 @@ Sicherungskopie_*
/build
/*.10-pre1
/install
/.vs
/CMakeSettings.json
/out

View File

@ -1,5 +1,9 @@
cmake_minimum_required(VERSION 3.0)
# Project Name and Version
project(JKQTPlotter LANGUAGES CXX VERSION 2019.11)
# set search path for CMake files
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

View File

@ -1,2 +0,0 @@
# Project Name and Version
project(JKQTPlotter LANGUAGES CXX VERSION 2019.11)

View File

@ -136,8 +136,8 @@ if(JKQtPlotter_BUILD_SHARED_LIBS)
set_property(TARGET ${libsh_name} PROPERTY VERSION "${PROJECT_VERSION}")
set_property(TARGET ${libsh_name} PROPERTY OUTPUT_NAME "${libsh_name_decorated}")
target_link_libraries(${libsh_name} PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Svg Qt5::Xml JKQTCommonSharedLib JKQTMathTextSharedLib)
target_compile_definitions(${libsh_name} PUBLIC JKQtPlotter_LIB_IN_DLL)
target_compile_definitions(${libsh_name} PRIVATE JKQtPlotter_LIB_EXPORT_LIBRARY)
target_compile_definitions(${libsh_name} PUBLIC JKQTPLOTTER_LIB_IN_DLL)
target_compile_definitions(${libsh_name} PRIVATE JKQTPLOTTER_LIB_EXPORT_LIBRARY)
target_include_directories(${libsh_name} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>