Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
OptimDBS
OptimDBS-dependencies
TTK
Commits
ff254465
Commit
ff254465
authored
9 years ago
by
Olivier Commowick
Browse files
Options
Downloads
Patches
Plain Diff
Switch to cmake 3
parent
66e906f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-12
8 additions, 12 deletions
CMakeLists.txt
with
8 additions
and
12 deletions
CMakeLists.txt
+
8
−
12
View file @
ff254465
cmake_minimum_required
(
VERSION 2.4
)
IF
(
COMMAND cmake_policy
)
cmake_policy
(
VERSION 2.4
)
cmake_policy
(
SET CMP0005 OLD
)
cmake_policy
(
SET CMP0003 NEW
)
ENDIF
(
COMMAND cmake_policy
)
project
(
TTK
)
cmake_minimum_required
(
VERSION 3.0
)
set
(
CMAKE_MACOSX_RPATH OFF
)
set
(
TTK_VERSION_NUMBER 1.4.0
)
mark_as_advanced
(
TTK_VERSION_NUMBER
)
project
(
TTK VERSION
${
TTK_VERSION_NUMBER
}
)
# On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
# warnings
...
...
@@ -221,7 +217,7 @@ endif(TTK_USE_VTKINRIA3D)
# Header file used to pass CMake settings to the source code
# -----------------------------------------------------------------------------
configure_file
(
${
PROJECT_SOURCE_DIR
}
/ttkConfigure.h.in
${
PROJECT_BINARY_DIR
}
/ttkConfigure.h
CONFIGURE IMMEDIATE
)
${
PROJECT_BINARY_DIR
}
/ttkConfigure.h
)
if
(
NOT
${
PROJECT_NAME
}
_INSTALL_NO_DEVELOPMENT
)
install
(
FILES
${
TTK_BINARY_DIR
}
/ttkConfigure.h
...
...
@@ -267,8 +263,8 @@ CONFIGURE_FILE(${TTK_SOURCE_DIR}/UseTTK.cmake.in
# Save the compiler settings so another project can import them.
SET
(
TTK_BUILD_SETTINGS_FILE
${
TTK_BINARY_DIR
}
/TTKBuildSettings.cmake
)
INCLUDE
(
${
CMAKE_ROOT
}
/Modules/CMakeExportBuildSettings.cmake
)
CMAKE_EXPORT_BUILD_SETTINGS
(
${
TTK_BUILD_SETTINGS_FILE
}
)
#
INCLUDE(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake)
#
CMAKE_EXPORT_BUILD_SETTINGS(${TTK_BUILD_SETTINGS_FILE})
# Create the TTKConfig.cmake file containing the TTK configuration.
INCLUDE
(
${
TTK_SOURCE_DIR
}
/ttkGenerateTTKConfig.cmake
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment