Skip to content

Commit

Permalink
add cma-es
Browse files Browse the repository at this point in the history
  • Loading branch information
gywn committed Nov 17, 2017
1 parent 113a07c commit 7a953f3
Show file tree
Hide file tree
Showing 12 changed files with 3,604 additions and 8 deletions.
20 changes: 15 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@ cmake_minimum_required (VERSION 3.1)

project(color)

# Compiler-specific C++11 activation.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(PythonLibs REQUIRED 3)
find_package(PythonInterp REQUIRED 3)
find_package(NumPy REQUIRED)

find_library(PythonLibs 3)

add_library(color SHARED src/debug.cpp src/conversion.cpp src/CIEDE2000.cpp)
target_include_directories(color PUBLIC include PRIVATE ${PYTHON_INCLUDE_DIR})
add_library(color SHARED src/debug.cpp src/conversion.cpp src/CIEDE2000.cpp src/fitness.cpp)
target_include_directories(color PUBLIC include PRIVATE ${PYTHON_INCLUDE_DIR} ${NUMPY_INCLUDE_DIR})

add_executable(testCIEDE2000 test/testCIEDE2000.cpp)
target_link_libraries(testCIEDE2000 color)

add_executable(evo1 test/example1.cpp)
target_link_libraries(evo1 color)
add_executable(evo2 test/example2.cpp)
target_link_libraries(evo2 color)

add_executable(testlexi test/testlexi.cpp)
target_link_libraries(testlexi color)
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

Loading

0 comments on commit 7a953f3

Please sign in to comment.