Skip to content

Commit

Permalink
Add cmake advanced option CTK_BUILD_SHARED_LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Mar 31, 2011
1 parent 73fbb4b commit 5b7d06e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ PROJECT(CTK)
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Default to shared library
# Library mode: SHARED (default) or STATIC
#
SET(CTK_LIBRARY_MODE "SHARED")
SET(CTK_BUILD_SHARED_LIBS TRUE)

OPTION(CTK_BUILD_SHARED_LIBS "Build CTK libraries as shared module." ON)
MARK_AS_ADVANCED(CTK_BUILD_SHARED_LIBS)
IF(NOT CTK_BUILD_SHARED_LIBS)
SET(CTK_LIBRARY_MODE "STATIC")
ENDIF()

#-----------------------------------------------------------------------------
# Superbuild Option - Enabled by default
Expand Down
1 change: 1 addition & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ ExternalProject_Add(${proj}
-DCTK_INSTALL_LIB_DIR:STRING=${CTK_INSTALL_LIB_DIR}
-DCTK_INSTALL_INCLUDE_DIR:STRING=${CTK_INSTALL_INCLUDE_DIR}
-DCTK_INSTALL_DOC_DIR:STRING=${CTK_INSTALL_DOC_DIR}
-DCTK_BUILD_SHARED_LIBS:BOOL=${CTK_BUILD_SHARED_LIBS}
-DCMAKE_INSTALL_PREFIX:PATH=${ep_install_dir}
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DCTK_CXX_FLAGS:STRING=${CTK_CXX_FLAGS}
Expand Down

0 comments on commit 5b7d06e

Please sign in to comment.