Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project_Phoenix
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Project_Phoenix
Commits
a5e41021
Commit
a5e41021
authored
Oct 6, 2017
by
jwendt
Browse files
Options
Downloads
Patches
Plain Diff
Include multi config conan into cmake
closes #151
parent
1726e01f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!50
Release v17.10.0
,
!38
Feature/08 model loading
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
cmake/ConanHelpers.cmake
+19
-25
19 additions, 25 deletions
cmake/ConanHelpers.cmake
cmake/cpplint.cmake
+1
-1
1 addition, 1 deletion
cmake/cpplint.cmake
with
22 additions
and
26 deletions
CMakeLists.txt
+
2
−
0
View file @
a5e41021
...
...
@@ -34,6 +34,7 @@ include(Testing)
include
(
ConfigureFiles
)
conan_or_find_package
(
cpplint REQUIRED
)
include
(
cpplint
)
include
(
GenerateExportHeader
)
...
...
@@ -49,6 +50,7 @@ find_package(OpenGL REQUIRED)
conan_or_find_package
(
SDL2 REQUIRED
)
conan_or_find_package
(
freeimage REQUIRED
)
add_subdirectory
(
library
)
add_subdirectory
(
tests
)
add_subdirectory
(
demos
)
This diff is collapsed.
Click to expand it.
cmake/ConanHelpers.cmake
+
19
−
25
View file @
a5e41021
...
...
@@ -38,10 +38,23 @@ else()
)
endif
()
#we reset CONAN_BUILD_INFO, so it is searched everytime, e.g. if we want to change from multi to a specific config
set
(
CONAN_BUILD_INFO
"CONAN_BUILD_INFO-NOTFOUND"
)
find_file
(
CONAN_BUILD_INFO conanbuildinfo_multi.cmake
NO_DEFAULT_PATH
PATHS
${
CMAKE_BINARY_DIR
}
)
if
(
${
CONAN_BUILD_INFO
}
STREQUAL
"CONAN_BUILD_INFO-NOTFOUND"
)
find_file
(
CONAN_BUILD_INFO conanbuildinfo.cmake
NO_DEFAULT_PATH
PATHS
${
CMAKE_BINARY_DIR
}
)
if
(
NOT
${
CONAN_BUILD_INFO
}
STREQUAL
"CONAN_BUILD_INFO-NOTFOUND"
)
set
(
USE_NOT_MULTI_CONAN_BUILD_INFO TRUE
)
endif
()
endif
()
if
(
USE_CONAN AND NOT CONAN_BUILD_INFO
)
message
(
FATAL_ERROR
" Error using conan:
\n
"
...
...
@@ -49,33 +62,14 @@ if(USE_CONAN AND NOT CONAN_BUILD_INFO)
" Aborting."
)
endif
()
# copied from conanbuildinfo
# TODO(@tvierjahn) can be removed once call to conan_output_dirs_setup()
# can be disabled
# see https://github.com/conan-io/conan/issues/1448
macro
(
conan_basic_setup_custom
)
if
(
CONAN_EXPORTED
)
message
(
STATUS
"Conan: called by CMake conan helper"
)
endif
()
conan_check_compiler
()
#conan_output_dirs_setup()
conan_set_find_library_paths
()
if
(
NOT
"
${
ARGV0
}
"
STREQUAL
"TARGETS"
)
message
(
STATUS
"Conan: Using cmake global configuration"
)
conan_global_flags
()
else
()
message
(
STATUS
"Conan: Using cmake targets configuration"
)
conan_define_targets
()
endif
()
conan_set_rpath
()
conan_set_vs_runtime
()
conan_set_libcxx
()
conan_set_find_paths
()
endmacro
()
if
(
USE_CONAN AND CONAN_BUILD_INFO
)
include
(
${
CMAKE_BINARY_DIR
}
/conanbuildinfo.cmake
)
conan_basic_setup_custom
(
TARGETS
)
include
(
${
CONAN_BUILD_INFO
}
)
if
(
USE_NOT_MULTI_CONAN_BUILD_INFO
)
conan_basic_setup
(
TARGETS NO_OUTPUT_DIRS
)
else
()
conan_basic_setup
(
TARGETS
)
endif
()
endif
()
macro
(
CONAN_OR_FIND_PACKAGE package
)
...
...
This diff is collapsed.
Click to expand it.
cmake/cpplint.cmake
+
1
−
1
View file @
a5e41021
...
...
@@ -44,7 +44,7 @@ endif()
find_file
(
CPPLINT_COMMAND cpplint.py
PATHS
${
CONAN_CPPLINT_DIR
}
#
$ENV{PATH} $ENV{CPPLINT_DIR}
$ENV{PATH} $ENV{CPPLINT_DIR}
)
if
(
NOT CPPLINT_COMMAND
)
message
(
SEND_ERROR
...
...
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