|
1 | 1 | cmake_minimum_required(VERSION 3.11.4 FATAL_ERROR) |
2 | 2 |
|
3 | | -project(neofaunus) |
| 3 | +project(faunus) |
4 | 4 |
|
5 | 5 | set(CMAKE_CXX_STANDARD 14) |
6 | 6 | set(CMAKE_CXX_STANDARD_REQUIRED YES) |
@@ -185,19 +185,19 @@ include_directories(SYSTEM ${eigen_SOURCE_DIR} ${doctest_SOURCE_DIR} ${modernjso |
185 | 185 |
|
186 | 186 | # faunus cpp files |
187 | 187 | set(objs |
| 188 | + ${CMAKE_SOURCE_DIR}/src/random.cpp |
| 189 | + ${CMAKE_SOURCE_DIR}/src/mpi.cpp |
| 190 | + ${CMAKE_SOURCE_DIR}/src/core.cpp |
| 191 | + ${CMAKE_SOURCE_DIR}/src/units.cpp |
188 | 192 | ${CMAKE_SOURCE_DIR}/src/analysis.cpp |
189 | 193 | ${CMAKE_SOURCE_DIR}/src/atomdata.cpp |
190 | | - ${CMAKE_SOURCE_DIR}/src/core.cpp |
191 | 194 | ${CMAKE_SOURCE_DIR}/src/energy.cpp |
192 | 195 | ${CMAKE_SOURCE_DIR}/src/geometry.cpp |
193 | 196 | ${CMAKE_SOURCE_DIR}/src/io.cpp |
194 | 197 | ${CMAKE_SOURCE_DIR}/src/move.cpp |
195 | | - ${CMAKE_SOURCE_DIR}/src/mpi.cpp |
196 | 198 | ${CMAKE_SOURCE_DIR}/src/particle.cpp |
197 | 199 | ${CMAKE_SOURCE_DIR}/src/penalty.cpp |
198 | | - ${CMAKE_SOURCE_DIR}/src/potentials.cpp |
199 | | - ${CMAKE_SOURCE_DIR}/src/random.cpp |
200 | | - ${CMAKE_SOURCE_DIR}/src/units.cpp) |
| 200 | + ${CMAKE_SOURCE_DIR}/src/potentials.cpp) |
201 | 201 |
|
202 | 202 | set_source_files_properties(${objs} PROPERTIES LANGUAGE CXX) |
203 | 203 |
|
@@ -247,7 +247,7 @@ target_compile_definitions(faunus PRIVATE |
247 | 247 | FAUNUS_TIPSFILE=\"${CMAKE_INSTALL_PREFIX}/share/faunus/tips.json\",\"${CMAKE_SOURCE_DIR}/tips.json\" ) |
248 | 248 |
|
249 | 249 | if (MPI_CXX_FOUND) |
250 | | - target_link_libraries(faunus PRIVATE MPI::MPI_C) |
| 250 | + target_link_libraries(faunus PRIVATE MPI::MPI_CXX) |
251 | 251 | target_compile_definitions(faunus PRIVATE ENABLE_MPI) |
252 | 252 | endif() |
253 | 253 |
|
|
0 commit comments