From 47b935fc42cbf2ca992d8a270bc1b0fc97d1f6bc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 30 May 2007 06:57:40 +0000 Subject: [PATCH] add initial CMakeLists --- CMakeLists.txt | 17 +++++++++++++++++ tvmet-1.7.1/CMakeLists.txt | 1 + tvmet-1.7.1/include/CMakeLists.txt | 1 + tvmet-1.7.1/include/tvmet/CMakeLists.txt | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 tvmet-1.7.1/CMakeLists.txt create mode 100644 tvmet-1.7.1/include/CMakeLists.txt create mode 100644 tvmet-1.7.1/include/tvmet/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..09558963f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ +project(eigen2) + +OPTION(BUILD_TESTS "Build tests" OFF) +OPTION(BUILD_EXAMPLES "Build examples" OFF) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +if(CMAKE_COMPILER_IS_GNUCXX) + if (CMAKE_SYSTEM_NAME MATCHES Linux) + set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common") + endif (CMAKE_SYSTEM_NAME MATCHES Linux) +endif (CMAKE_COMPILER_IS_GNUCXX) + +include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) + +add_subdirectory(tvmet-1.7.1) diff --git a/tvmet-1.7.1/CMakeLists.txt b/tvmet-1.7.1/CMakeLists.txt new file mode 100644 index 000000000..2ae409720 --- /dev/null +++ b/tvmet-1.7.1/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(include) \ No newline at end of file diff --git a/tvmet-1.7.1/include/CMakeLists.txt b/tvmet-1.7.1/include/CMakeLists.txt new file mode 100644 index 000000000..437795d71 --- /dev/null +++ b/tvmet-1.7.1/include/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(tvmet) \ No newline at end of file diff --git a/tvmet-1.7.1/include/tvmet/CMakeLists.txt b/tvmet-1.7.1/include/tvmet/CMakeLists.txt new file mode 100644 index 000000000..c47c07681 --- /dev/null +++ b/tvmet-1.7.1/include/tvmet/CMakeLists.txt @@ -0,0 +1,10 @@ +# the following are directories where stuff will be installed to +set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The subdirectory to the header prefix" FORCE) + +FILE(GLOB gmm_header_SRCS "*.h") + +install(FILES + ${gmm_header_SRCS} + DESTINATION ${INCLUDE_INSTALL_DIR}/tvmet + ) +