You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
573 B

2 years ago
set(SUB_PROJECT_NAME top-thermoelastic-BiclampedStructure_cuda)
add_executable(${SUB_PROJECT_NAME} main.cu)
# OpenMP Required!
target_compile_options(${SUB_PROJECT_NAME} PRIVATE -Xcompiler -fopenmp)
target_link_libraries(${SUB_PROJECT_NAME} PUBLIC ${PROJECT_NAME}_cuda_lib)
target_compile_definitions(${SUB_PROJECT_NAME} PUBLIC CONFIG_FILE="${CMAKE_CURRENT_SOURCE_DIR}/config.json")
target_compile_definitions(${SUB_PROJECT_NAME} PUBLIC OUTPUT_DIR="${CMAKE_SOURCE_DIR}/output")
target_compile_definitions(${SUB_PROJECT_NAME} PUBLIC ASSETS_DIR="${CMAKE_SOURCE_DIR}/assets")