Commit d1d074ad authored by Philip Trettner's avatar Philip Trettner

Made link type configurable and default to SHARED

parent c84c0de7
Pipeline #849 passed with stage
......@@ -12,6 +12,9 @@ CMAKE_MINIMUM_REQUIRED (VERSION 3.0)
# Name of the Project
PROJECT(ACGL)
# Link type
SET(ACGL_LINK_TYPE SHARED CACHE STRING "Library link types")
# OpenGL Support
IF(NOT DEFINED ACGL_OPENGL_SUPPORT)
SET(ACGL_OPENGL_SUPPORT CORE_42 CACHE STRING "")
......@@ -42,7 +45,7 @@ SET(ACGL_SKIP_INCLUDE_AND_DEF TRUE) # don't use include_directories and add_defi
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeListsStaticInclude.txt)
# Define the Project, add all required sources and dependencies to it
ADD_LIBRARY(ACGL STATIC ${SOURCE_FILES} ${HEADER_FILES})
ADD_LIBRARY(ACGL ${ACGL_LINK_TYPE} ${SOURCE_FILES} ${HEADER_FILES})
# static linking for MSVC
IF(ACGL_STATIC_RUNTIME_ENV)
......
Markdown is supported
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