From a3acc91dc9aad95251db6ff241c5f0c3e0f382c0 Mon Sep 17 00:00:00 2001 From: slowy07 Date: Wed, 9 Oct 2024 06:03:38 +0700 Subject: [PATCH] fix(CMakeLists): memperbaiki typo modules Signed-off-by: slowy07 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d9309e7..e0b85f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,8 +20,8 @@ function(source_fortran DIR SOURCES) endfunction() set(MODULE_SOURCES) -source_fortran(${CMAKE_SOURCE_DIR}/modules MODULE_SOURCES) -add_library(modules STATIC ${MODULE_SOURCES}) +source_fortran(${CMAKE_SOURCE_DIR}/module MODULE_SOURCES) +add_library(module STATIC ${MODULE_SOURCES}) function(buat_nama_file_unik FILE_NAME OUTPUT_NAME) file(RELATIVE_PATH REL_PATH "${CMAKE_SOURCE_DIR}" "${FILE_NAME}") @@ -36,7 +36,7 @@ file(GLOB_RECURSE TEST_FILES "${CMAKE_SOURCE_DIR}/test/*.f90") foreach(TEST_FILE ${TEST_FILES}) buat_nama_file_unik(${TEST_FILE} TEST_NAME) add_executable(${TEST_NAME} ${TEST_FILE}) - target_link_libraries(${TEST_NAME} modules) + target_link_libraries(${TEST_NAME} module) add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME}) endforeach() @@ -45,7 +45,7 @@ file(GLOB_RECURSE EXAMPLE_FILES "${CMAKE_SOURCE_DIR}/contoh/*.f90") foreach(EXAMPLE_FILE ${EXAMPLE_FILES}) buat_nama_file_unik(${EXAMPLE_FILE} EXAMPLE_NAME) add_executable(${EXAMPLE_NAME} ${EXAMPLE_FILE}) - target_link_libraries(${EXAMPLE_NAME} modules) + target_link_libraries(${EXAMPLE_NAME} module) list(APPEND EXAMPLE_NAME_LIST run_${EXAMPLE_NAME}) add_custom_target(run_${EXAMPLE_NAME} COMMAND ${EXAMPLE_NAME}