xref: /phasta/phSolver/CMakeLists.txt (revision 3de22adcea938dcbea5f2b4ef2369694350775bd)
1project(phSolver)
2set(CMAKE_Fortran_MODULE_DIRECTORY ${phSolver_BINARY_DIR}/modules)
3include_directories(${CMAKE_Fortran_MODULE_DIRECTORY})
4
5set(CASES "/path/to/test/cases/"
6  CACHE string
7  "path to the test cases")
8option(PHASTA_TESTING "enable tests" OFF)
9
10add_subdirectory(common)
11option(PHASTA_INCOMPRESSIBLE "Build the incompressible solver" OFF)
12option(PHASTA_COMPRESSIBLE "Build the compressible solver" ON)
13if(PHASTA_INCOMPRESSIBLE)
14add_subdirectory(incompressible)
15endif(PHASTA_INCOMPRESSIBLE)
16if(PHASTA_COMPRESSIBLE)
17add_subdirectory(compressible)
18endif(PHASTA_COMPRESSIBLE)
19
20configure_file(
21  "${CMAKE_CURRENT_SOURCE_DIR}/phastaConfig.cmake.in"
22  "${CMAKE_BINARY_DIR}/phastaConfig.cmake"
23)
24
25