INCLUDE(${BBTK_CMAKE_DIR}/BBTKMarkAsAdvanced.cmake)
INCLUDE(${BBTK_CMAKE_DIR}/BBTKDefineOptions.cmake)
INCLUDE(${BBTK_CMAKE_DIR}/BBTKAddDefinitions.cmake)
- SUBDIRS(kernel)
- SUBDIRS(src)
- SUBDIRS(doc)
- SUBDIRS(appli)
- SUBDIRS(cmake)
- SUBDIRS(install)
- SUBDIRS(data)
- SUBDIRS(packages)
\ No newline at end of file
+ ADD_SUBDIRECTORY(kernel)
+ ADD_SUBDIRECTORY(src)
+ ADD_SUBDIRECTORY(doc)
+ ADD_SUBDIRECTORY(appli)
+ ADD_SUBDIRECTORY(cmake)
+ ADD_SUBDIRECTORY(install)
+ ADD_SUBDIRECTORY(data)
+ ADD_SUBDIRECTORY(packages)
\ No newline at end of file
#----------------------------------------------------------------------------
IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
SET(${BBTK_PACKAGE_NAME}_DOXYGEN_REL_PATH ${BBTK_PACKAGE_NAME})
- SUBDIRS(doxygen)
+ ADD_SUBDIRECTORY(doxygen)
ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_DOXYGEN_DOC)
#----------------------------------------------------------------------------
# bbdoc
#---------------------------------------------------------------------------
#IF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
- SUBDIRS(bbdoc)
+ ADD_SUBDIRECTORY(bbdoc)
#ENDIF(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME}_HTML_DOC)
#---------------------------------------------------------------------------
is in an existing project handled by \cmake
and you want the new package to be part of your existing project.
You will have to create your new package within the source tree of your
-project and add a \texttt{SUBDIRS} command in the \texttt{CMakeLists.txt}
+project and add a \texttt{ADD_SUBDIRECTORY} command in the \texttt{CMakeLists.txt}
file of the parent directory of your package.
\item You do not have an already existing project (you want
to create the new boxes from scratch) or you want/are imposed
# LIST HERE THE LIBS TO LINK AGAINST (EXCEPT BBTK)
)
#===========================================================================
-
-
+# To compile with VS under x64, /bigobj flag is needed
+IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
+ENDIF()
#===========================================================================
# END OF USER SECTION