cmake_minimum_required(VERSION 3.8) project(Population) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES src/main.cpp src/sources/Population.cpp src/headers/Population.h src/sources/Parameters.cpp src/headers/Parameters.h src/sources/GMatrix.cpp src/headers/GMatrix.h src/sources/GRandom.cpp src/headers/GRandom.h src/headers/Utils.h src/sources/DynamicSave.cpp src/headers/DynamicSave.h src/sources/Rescuers.cpp src/headers/Rescuers.h src/sources/InputParser.cpp src/headers/InputParser.h) add_executable(Population ${SOURCE_FILES}) find_package(GSL REQUIRED) target_link_libraries(Population libgsl.a libgslcblas.a)