Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
FIC_DK_P GA Solving
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3TAL
FIC_DK_P GA Solving
Commits
a45af4aa
Commit
a45af4aa
authored
Apr 29, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating CMAKE config in order to build and link correctly
parent
0027fd76
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
7 deletions
+31
-7
CMakeLists.txt
CMakeLists.txt
+3
-3
CMakeLists.txt
application/CMakeLists.txt
+3
-3
CMakeLists.txt
src/CMakeLists.txt
+4
-1
CMakeLists.txt
src/model/CMakeLists.txt
+13
-0
CMakeLists.txt
src/model/exception/CMakeLists.txt
+4
-0
CMakeLists.txt
src/model/scale/CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
a45af4aa
...
...
@@ -5,11 +5,11 @@
cmake_minimum_required
(
VERSION 2.6
)
# Here define your project name
project
(
QUEEN
)
project
(
CEAO
)
# Here define the name and the version of your package
set
(
PACKAGE_NAME
"
QUEEN
"
CACHE STRING
"Package name"
FORCE
)
set
(
PACKAGE_VERSION
"
2
.0"
CACHE STRING
"aPackage version"
FORCE
)
set
(
PACKAGE_NAME
"
CEAO
"
CACHE STRING
"Package name"
FORCE
)
set
(
PACKAGE_VERSION
"
1
.0"
CACHE STRING
"aPackage version"
FORCE
)
# regular expression checking
...
...
application/CMakeLists.txt
View file @
a45af4aa
...
...
@@ -4,13 +4,13 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
# 2) Define targets: executable and dependencies
ADD_EXECUTABLE
(
solveQueen
main.cpp
)
ADD_EXECUTABLE
(
ceao
main.cpp
)
ADD_EXECUTABLE
(
tryInit tryInit.cpp
)
ADD_EXECUTABLE
(
tryMutation tryMutation.cpp
)
ADD_EXECUTABLE
(
tryCrossover tryCrossover.cpp
)
ADD_EXECUTABLE
(
tryEval tryEval.cpp
)
ADD_DEPENDENCIES
(
solveQueen lQueen
)
ADD_DEPENDENCIES
(
ceao lQueen lModel
)
ADD_DEPENDENCIES
(
tryInit lQueen
)
ADD_DEPENDENCIES
(
tryMutation lQueen
)
ADD_DEPENDENCIES
(
tryCrossover lQueen
)
...
...
@@ -18,7 +18,7 @@ ADD_DEPENDENCIES(tryEval lQueen)
# 3) Link the librairies for your executable
TARGET_LINK_LIBRARIES
(
solveQueen
${
PARADISEO_LIBRARIES
}
lQueen
)
TARGET_LINK_LIBRARIES
(
ceao
${
PARADISEO_LIBRARIES
}
lQueen lModel
)
TARGET_LINK_LIBRARIES
(
tryInit
${
PARADISEO_LIBRARIES
}
lQueen
)
TARGET_LINK_LIBRARIES
(
tryMutation
${
PARADISEO_LIBRARIES
}
lQueen
)
TARGET_LINK_LIBRARIES
(
tryCrossover
${
PARADISEO_LIBRARIES
}
lQueen
)
...
...
src/CMakeLists.txt
View file @
a45af4aa
...
...
@@ -8,3 +8,6 @@ SET (EXERCICE_SOURCES
)
ADD_LIBRARY
(
lQueen STATIC
${
EXERCICE_SOURCES
}
)
add_subdirectory
(
model
)
\ No newline at end of file
src/model/CMakeLists.txt
0 → 100644
View file @
a45af4aa
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/model
)
include_directories
(
${
PARADISEO_INCLUDE_DIR
}
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_BINARY_DIR
}
/lib
)
SET
(
EXERCICE_SOURCES
magnitude.cpp
)
ADD_LIBRARY
(
lModel STATIC
${
EXERCICE_SOURCES
}
)
add_subdirectory
(
exception
)
add_subdirectory
(
scale
)
\ No newline at end of file
src/model/exception/CMakeLists.txt
0 → 100644
View file @
a45af4aa
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/exception
)
include_directories
(
${
PARADISEO_INCLUDE_DIR
}
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_BINARY_DIR
}
/lib
)
src/model/scale/CMakeLists.txt
0 → 100644
View file @
a45af4aa
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/scale
)
include_directories
(
${
PARADISEO_INCLUDE_DIR
}
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_BINARY_DIR
}
/lib
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment