Commit 464f1ff4 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed tgt build scripts to also allow static build of TGT.

refs #376
parent dc70251d
......@@ -12,7 +12,14 @@ IF(TGT_WITH_WMI)
ADD_DEFINITIONS("-DTGT_WITH_WMI")
ADD_DEFINITIONS("-D_WIN32_DCOM") #< for CoInitializeSecurity() to be defined
LIST(APPEND CampvisGlobalExternalLibs "WbemUuid")
ENDIF(TGT_WITH_WMI)
ENDIF(TGT_WITH_WMI)
IF(CAMPVIS_SHARED_LIBS)
SET(BUILD_SHARED_LIBS TRUE)
IF(MSVC)
ADD_DEFINITIONS("-DTGT_BUILD_DLL")
ENDIF()
ENDIF()
# headers
......@@ -88,11 +95,8 @@ ENDIF(TGT_WITH_QT)
################################################################################
# define library target
################################################################################
ADD_LIBRARY(tgt SHARED ${TGT_SOURCES} ${TGT_HEADERS})
ADD_LIBRARY(tgt ${TGT_SOURCES} ${TGT_HEADERS})
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${QT_DEFINITIONS})
IF(CAMPVIS_SHARED_LIBS AND MSVC)
ADD_DEFINITIONS("-DTGT_BUILD_DLL")
ENDIF()
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
TARGET_LINK_LIBRARIES(tgt ${CampvisGlobalExternalLibs} ${QT_LIBRARIES})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment