Fix a libmygpo-qt linker error on windows

This commit is contained in:
David Sansome 2013-05-04 14:04:00 +00:00
parent a3f927cde2
commit 064249deeb
2 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,6 @@ set( MYGPO_QT_VERSION_MINOR "0" )
set( MYGPO_QT_VERSION_PATCH "7" )
configure_file( Version.h.in ${CMAKE_CURRENT_BINARY_DIR}/Version.h )
include_directories("${QJSON_INCLUDEDIR}/qjson")
add_definitions(-DMYGPO_EXPORT=)
include_directories( ${QT_INCLUDES} ${QJSON_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )

View File

@ -422,6 +422,7 @@ if(LIBMYGPO_QT_FOUND)
set(MYGPOQT_LIBRARIES ${LIBMYGPO_QT_LIBRARIES})
set(MYGPOQT_INCLUDE_DIRS ${LIBMYGPO_QT_INCLUDE_DIRS})
else()
add_definitions(-DMYGPO_EXPORT=)
add_subdirectory(3rdparty/libmygpo-qt)
set(MYGPOQT_LIBRARIES mygpo-qt)
set(MYGPOQT_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/3rdparty/libmygpo-qt/)