Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
ae7da395
Commit
ae7da395
authored
14 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
treying to fix pb for jon
parent
ed41898b
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
+22
-18
22 additions, 18 deletions
CMakeLists.txt
with
22 additions
and
18 deletions
CMakeLists.txt
+
22
−
18
View file @
ae7da395
...
...
@@ -302,28 +302,32 @@ if(ENABLE_PARSER)
endif
(
ENABLE_PARSER
)
if
(
ENABLE_FLTK
)
#
try
first to use fltk-config (FindFLTK is buggy
on Unix, where
# e.g. xft and xinerama options are not dealt with)
# first
, try
to use fltk-config
for fltk >= 1.3
(FindFLTK is buggy
#
on Unix, where
e.g. xft and xinerama options are not dealt with)
find_program
(
FLTK_CONFIG_SCRIPT fltk-config
)
if
(
FLTK_CONFIG_SCRIPT
)
add_subdirectory
(
Fltk
)
set_config_option
(
HAVE_FLTK
"Fltk"
)
execute_process
(
COMMAND
${
FLTK_CONFIG_SCRIPT
}
--api-version
OUTPUT_VARIABLE FLTK_VERSION
)
string
(
STRIP
${
FLTK_VERSION
}
FLTK_VERSION
)
message
(
STATUS
"Found fltk-config script for FLTK "
${
FLTK_VERSION
}
)
execute_process
(
COMMAND
${
FLTK_CONFIG_SCRIPT
}
--use-gl --use-images --includedir
OUTPUT_VARIABLE FLTK_INCLUDE_DIR
)
string
(
STRIP
${
FLTK_INCLUDE_DIR
}
FLTK_INCLUDE_DIR
)
list
(
APPEND EXTERNAL_INCLUDES
${
FLTK_INCLUDE_DIR
}
${
FLTK_INCLUDE_DIR
}
/FL/images
${
FLTK_INCLUDE_DIR
}
/jpeg
${
FLTK_INCLUDE_DIR
}
/zlib
${
FLTK_INCLUDE_DIR
}
/png
)
execute_process
(
COMMAND
${
FLTK_CONFIG_SCRIPT
}
--use-gl --use-images --ldflags
OUTPUT_VARIABLE FLTK_LIBRARIES
)
string
(
STRIP
${
FLTK_LIBRARIES
}
FLTK_LIBRARIES
)
string
(
REGEX MATCH
"fltk[_ ]jpeg"
FLTK_JPEG
${
FLTK_LIBRARIES
}
)
string
(
REGEX MATCH
"fltk[_ ]z"
FLTK_Z
${
FLTK_LIBRARIES
}
)
string
(
REGEX MATCH
"fltk[_ ]png"
FLTK_PNG
${
FLTK_LIBRARIES
}
)
else
(
FLTK_CONFIG_SCRIPT
)
if
(
FLTK_VERSION GREATER 1.1
)
add_subdirectory
(
Fltk
)
set_config_option
(
HAVE_FLTK
"Fltk"
)
message
(
STATUS
"Using fltk-config script for FLTK "
${
FLTK_VERSION
}
)
execute_process
(
COMMAND
${
FLTK_CONFIG_SCRIPT
}
--use-gl --use-images --includedir
OUTPUT_VARIABLE FLTK_INCLUDE_DIR
)
string
(
STRIP
${
FLTK_INCLUDE_DIR
}
FLTK_INCLUDE_DIR
)
list
(
APPEND EXTERNAL_INCLUDES
${
FLTK_INCLUDE_DIR
}
${
FLTK_INCLUDE_DIR
}
/FL/images
${
FLTK_INCLUDE_DIR
}
/jpeg
${
FLTK_INCLUDE_DIR
}
/zlib
${
FLTK_INCLUDE_DIR
}
/png
)
execute_process
(
COMMAND
${
FLTK_CONFIG_SCRIPT
}
--use-gl --use-images --ldflags
OUTPUT_VARIABLE FLTK_LIBRARIES
)
string
(
STRIP
${
FLTK_LIBRARIES
}
FLTK_LIBRARIES
)
string
(
REGEX MATCH
"fltk[_ ]jpeg"
FLTK_JPEG
${
FLTK_LIBRARIES
}
)
string
(
REGEX MATCH
"fltk[_ ]z"
FLTK_Z
${
FLTK_LIBRARIES
}
)
string
(
REGEX MATCH
"fltk[_ ]png"
FLTK_PNG
${
FLTK_LIBRARIES
}
)
endif
(
FLTK_VERSION GREATER 1.1
)
endif
(
FLTK_CONFIG_SCRIPT
)
# then try the built-in FindFLTK module
if
(
NOT HAVE_FLTK
)
set
(
FLTK_SKIP_FORMS TRUE
)
set
(
FLTK_SKIP_FLUID TRUE
)
find_package
(
FLTK
)
...
...
@@ -365,7 +369,7 @@ if(ENABLE_FLTK)
endforeach
(
DIR
)
endif
(
FLTK_PNG
)
endif
(
FLTK_FOUND
)
endif
(
FLTK_CONFIG_SCRIPT
)
endif
(
NOT HAVE_FLTK
)
if
(
ENABLE_NATIVE_FILE_CHOOSER
)
if
(
NOT FLTK_VERSION OR FLTK_VERSION EQUAL 1.1
)
add_subdirectory
(
contrib/NativeFileChooser
)
...
...
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