diff --git a/CMakeLists.txt b/CMakeLists.txt index 59b64884..7c4466aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ if (NOT DEFINED CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type") endif () + list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 397bb461..a97682be 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,6 +52,12 @@ else () add_library (cmaes STATIC ${LIBCMAES_SOURCES}) endif () + +target_compile_options(cmaes + PRIVATE + $<$>:-Wall -Wextra> + $<$:/W4> ) + target_include_directories ( cmaes PUBLIC $ $