Commit a45af4aa authored by Alexis Lebis's avatar Alexis Lebis

Updating CMAKE config in order to build and link correctly

parent 0027fd76
......@@ -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
......
......@@ -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)
......
......@@ -8,3 +8,6 @@ SET (EXERCICE_SOURCES
)
ADD_LIBRARY(lQueen STATIC ${EXERCICE_SOURCES})
add_subdirectory(model)
\ No newline at end of file
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
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/exception)
include_directories(${PARADISEO_INCLUDE_DIR})
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment