From 3bb09e42b96fc71b8d139d0ecf50fe390f5cc394 Mon Sep 17 00:00:00 2001 From: Theo Pannetier Date: Fri, 27 Oct 2023 15:02:42 +0100 Subject: [PATCH] build with cmake msvc --- .gitignore | 2 ++ CMakeLists.txt | 2 +- src/RScore/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4c883c3..14bf251 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,8 @@ Bacup*/ .vs/ *.sln *.vcxproj* +out/ +x64/ # Ignore test project outputs, except anchors run_on_gha/rs_test_project/Outputs/* diff --git a/CMakeLists.txt b/CMakeLists.txt index be31ed6..83b9d59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ add_subdirectory(src/RScore) add_executable(RangeShifter src/main.cpp src/BatchMode.cpp) # pass config definitions to compiler -target_compile_definitions(RangeShifter PRIVATE "RSDEBUG" "LINUX_CLUSTER" "RSWIN64" "BATCH") +target_compile_definitions(RangeShifter PRIVATE "RSDEBUG" "RSWIN64" "BATCH") # link RScore to the executable as a library target_link_libraries(RangeShifter PUBLIC RScore) diff --git a/src/RScore/CMakeLists.txt b/src/RScore/CMakeLists.txt index 6700d5d..760a83e 100644 --- a/src/RScore/CMakeLists.txt +++ b/src/RScore/CMakeLists.txt @@ -4,4 +4,4 @@ add_library(RScore Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp Genome.cpp Individual.cpp Landscape.cpp Model.cpp Parameters.cpp Patch.cpp Population.cpp RandomCheck.cpp RSrandom.cpp SubCommunity.cpp) # pass config definitions to compiler -target_compile_definitions(RScore PRIVATE "RSDEBUG" "LINUX_CLUSTER" "RSWIN64" "BATCH") \ No newline at end of file +target_compile_definitions(RScore PRIVATE "RSDEBUG" "RSWIN64" "BATCH") \ No newline at end of file