159599516SKenneth E. Jansenfile(GLOB SRC_FILES *.cc *.f *.f90 *.c) 2*f326e5ceSCameron Smithlist(REMOVE_ITEM SRC_FILES "main.cc") 359599516SKenneth E. Jansenadd_library(compressible ${SRC_FILES}) 459599516SKenneth E. Jansenif(PHASTA_USE_MPI) 559599516SKenneth E. Jansen include_directories(${MPI_INCLUDE_PATH} ${MPI_Fortran_INCLUDE_PATH}) 659599516SKenneth E. Jansenendif(PHASTA_USE_MPI) 718c3b980SCameron Smithinclude_directories(${PHASTA_BINARY_DIR}) 8*f326e5ceSCameron Smithadd_executable(phastaC.exe main.cc) 959599516SKenneth E. Jansenset_target_properties(phastaC.exe PROPERTIES HAS_CXX TRUE) 1059599516SKenneth E. Jansenset_target_properties(compressible PROPERTIES HAS_CXX TRUE) 1159599516SKenneth E. Jansenset_target_properties(phastaC.exe PROPERTIES LINKER_LANGUAGE Fortran) 1259599516SKenneth E. Jansenset_target_properties(compressible PROPERTIES LINKER_LANGUAGE Fortran) 1359599516SKenneth E. Jansenif(PHASTA_USE_MPI) 142992f42eSCameron Smith target_link_libraries(phastaC.exe ${MPI_LIBRARIES} ${MPI_Fortran_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} common compressible common phastaIO) 1559599516SKenneth E. Jansenendif(PHASTA_USE_MPI) 1659599516SKenneth E. Jansenif(PHASTA_BUILD_SHAPEFUNCTION) 1759599516SKenneth E. Jansen target_link_libraries(phastaC.exe shapeFunction) 1859599516SKenneth E. Jansenendif(PHASTA_BUILD_SHAPEFUNCTION) 1959599516SKenneth E. Jansenif(PHASTA_BUILD_PHSHAPE) 2059599516SKenneth E. Jansen target_link_libraries(phastaC.exe phshape) 2159599516SKenneth E. Jansenendif(PHASTA_BUILD_PHSHAPE) 2259599516SKenneth E. Jansentarget_link_libraries(phastaC.exe compressible) 2396040df8SCameron Smith 242e3b5a4aSCameron Smithif(PHASTA_TESTING) 2596040df8SCameron Smith add_subdirectory(test) 262e3b5a4aSCameron Smithendif(PHASTA_TESTING) 27