Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ImageINSA_Tanguy
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tanguy.Raufflet
ImageINSA_Tanguy
Commits
86db68e9
Commit
86db68e9
authored
10 years ago
by
Antoine Lorence
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] 'core' is now a shared library
parent
77c0068f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+8
-7
8 additions, 7 deletions
CMakeLists.txt
app/CMakeLists.txt
+0
-2
0 additions, 2 deletions
app/CMakeLists.txt
core/CMakeLists.txt
+6
-3
6 additions, 3 deletions
core/CMakeLists.txt
lib/detiq-t
+1
-1
1 addition, 1 deletion
lib/detiq-t
with
15 additions
and
13 deletions
CMakeLists.txt
+
8
−
7
View file @
86db68e9
...
...
@@ -18,6 +18,7 @@ find_package(Qt5OpenGL)
find_package
(
Qt5PrintSupport
)
# We want to generate everything in the right target folder, for easier deployment
file
(
MAKE_DIRECTORY
${
DEPLOY_OUTPUT_DIRECTORY
}
/lib
)
set
(
DEPLOY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/eiimage CACHE PATH
"The folder to use for deployment."
FORCE
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
DEPLOY_OUTPUT_DIRECTORY
}
/lib
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
DEPLOY_OUTPUT_DIRECTORY
}
/lib
)
...
...
@@ -97,17 +98,17 @@ if(WIN32)
endforeach
()
# Qt and compiler dll
if
(
Qt5Core_VERSION_STRING GREATER 5.3
)
if
(
CMAKE_BUILD_TYPE MATCHES
"
Release
"
)
set
(
DEPLOY_FLAG
"--release"
)
if
(
Qt5Core_VERSION_STRING
VERSION_
GREATER 5.3
)
if
(
CMAKE_BUILD_TYPE MATCHES Release
)
set
(
DEPLOY_FLAG
S
"--release"
)
else
()
set
(
DEPLOY_FLAG
"--debug"
)
set
(
DEPLOY_FLAG
S
"--debug"
)
endif
()
endif
()
add_custom_target
(
WinQtDeploy ALL
windeployqt
${
DEPLOY_FLAG
}
${
DEPLOY_OUTPUT_DIRECTORY
}
/qwt.dll
COMMAND windeployqt
${
DEPLOY_FLAG
}
${
DEPLOY_OUTPUT_DIRECTORY
}
/eiimage.exe
windeployqt
${
DEPLOY_FLAGS
}
${
DEPLOY_OUTPUT_DIRECTORY
}
/qwt.dll
COMMAND windeployqt
${
DEPLOY_FLAGS
}
${
DEPLOY_OUTPUT_DIRECTORY
}
/eiimage.exe
COMMENT
"Copy Qt & compiler DLL to the target directory"
)
add_dependencies
(
WinQtDeploy eiimage
)
endif
()
This diff is collapsed.
Click to expand it.
app/CMakeLists.txt
+
0
−
2
View file @
86db68e9
...
...
@@ -200,8 +200,6 @@ target_link_libraries(eiimage
Qt5::Script
Qt5::Xml
${
RandomLib_LIBRARIES
}
GenericInterface
ImageIn
)
add_custom_command
(
TARGET eiimage POST_BUILD
...
...
This diff is collapsed.
Click to expand it.
core/CMakeLists.txt
+
6
−
3
View file @
86db68e9
...
...
@@ -18,9 +18,12 @@ set(SRCS
PlugOperation.cpp
PlugOperation.h
)
add_library
(
core
${
SRCS
}
)
add_library
(
core
SHARED
${
SRCS
}
$<TARGET_OBJECTS:GenericInterface> $<TARGET_OBJECTS:ImageIn>
)
target_link_libraries
(
core
GenericInterface
ImageIn
Qt5::Widgets
${
QWT_LIBRARY
}
${
QWT_LIBRARIES
}
${
JPEG_LIBRARY
}
${
PNG_LIBRARIES
}
${
CMAKE_THREAD_LIBS_INIT
}
)
This diff is collapsed.
Click to expand it.
detiq-t
@
9ba87b46
Compare
15978545
...
9ba87b46
Subproject commit
1597854502dc79b30e476b199ba88e3518ef9b3c
Subproject commit
9ba87b46e81835754952a7b968ea975f1ba409d7
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