Skip to content

Commit

Permalink
build with cmake msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPannetier committed Oct 27, 2023
1 parent 9d2bd55 commit 3bb09e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Bacup*/
.vs/
*.sln
*.vcxproj*
out/
x64/

# Ignore test project outputs, except anchors
run_on_gha/rs_test_project/Outputs/*
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/RScore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
target_compile_definitions(RScore PRIVATE "RSDEBUG" "RSWIN64" "BATCH")

0 comments on commit 3bb09e4

Please sign in to comment.