Commit 3cc6866a authored by famen's avatar famen
Browse files

clean up of the comments in all the CMakeLists.txt files

parent b7198186
Pipeline #16559 passed with stage
in 1 minute and 5 seconds
......@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.0)
# Creating the project
project(DTUWEC LANGUAGES Fortran)
# message(${CMAKE_SOURCE_DIR})
# Set the source code directory
set(ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(MODSRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/modules)
......@@ -28,11 +28,4 @@ message("Configuring flap controller source files: " ${FLAP_SRC_DIR})
add_subdirectory(${FLAP_SRC_DIR})
message("Configuring cyclic flap controller source files: " ${FLAPCYC_SRC_DIR})
add_subdirectory(${FLAPCYC_SRC_DIR})
# Adding all source files in ./source directory
# file(GLOB_RECURSE SRC *.f90)
# set(LIB_TYPE STATIC)
# include(${CMAKE_CURRENT_SOURCE_DIR}/utils/ci/CMakeListsFortranLibrary.txt)
add_subdirectory(${FLAPCYC_SRC_DIR})
\ No newline at end of file
......@@ -7,10 +7,6 @@ message("Root Directory is: " ${ROOT_DIR})
# set source code
set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(DTUWEC_SRC_DIR ${SRC_DIR})
# set(SRC ${DTUWEC_SRC_DIR}/dtu_we_controller_fcns.f90
# turbine_controller.f90
# safety_system.f90
# )
file(GLOB_RECURSE MODSRC "${ROOT_DIR}/src/modules/global_constants.f90"
"${ROOT_DIR}/src/modules/global_variables.f90"
"${ROOT_DIR}/src/modules/misc_mod.f90"
......@@ -23,19 +19,7 @@ file(GLOB_RECURSE SRC "${SRC_DIR}/dtu_we_controller.f90"
"${SRC_DIR}/safety_system.f90"
)
list (APPEND SRC ${MODSRC})
# add_library(turbine_controller_lib
# ${MODSRC}
# dtu_we_controller_fcns.f90
# turbine_controller.f90
# safety_system.f90
# )
# target_compile_options(turbine_controller_lib PRIVATE
# -cpp;
# -fcray-pointer;
# -ffree-form;
# -ffree-line-length-none;
# )
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
include(${ROOT_DIR}/utils/cmake/CMakeLists.txt)
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
# target_link_libraries(${PROJECT_NAME} turbine_controller_lib)
......@@ -3,7 +3,7 @@ project(DTUWEC_for_OpenFAST LANGUAGES Fortran)
message("Configuring Subproject: " ${PROJECT_NAME})
message("Root Directory is: " ${ROOT_DIR})
message("Source directory dtu_we_controller is: " ${DTUWEC_SRC_DIR})
message("Source directory of dtu_we_controller is: " ${DTUWEC_SRC_DIR})
# set source code
set(BLADED_INTERFACE_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
......@@ -24,26 +24,6 @@ file(GLOB_RECURSE SRC "${BLADED_INTERFACE_SRC_DIR}/dtu_we_controller_bladed.f90"
list (APPEND SRC ${MODSRC})
# file(GLOB_RECURSE SRC "${SRC_DIR}/dtu_we_controller.f90"
# "${SRC_DIR}/dtu_we_controller_fcns.f90"
# "${SRC_DIR}/turbine_controller.f90"
# "${SRC_DIR}/safety_system.f90"
# )
# add_library(hawc2_controller_lib
# ${MODSRC}
# ${DTUWEC_SRC_DIR}/dtu_we_controller_fcns.f90
# ${DTUWEC_SRC_DIR}/turbine_controller.f90
# ${DTUWEC_SRC_DIR}/safety_system.f90
# # ${DTUWEC_SRC_DIR}/dtu_we_controller.f90
# )
# target_compile_options(hawc2_controller_lib PRIVATE
# -cpp;
# -fcray-pointer;
# -ffree-form;
# -ffree-line-length-none;
# )
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
include(${ROOT_DIR}/utils/cmake/CMakeLists.txt)
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
# target_link_libraries(${PROJECT_NAME} hawc2_controller_lib)
......@@ -6,7 +6,7 @@ message("Root Directory is: " ${ROOT_DIR})
# set source code
set(FLAPCYC_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE MODSRC "${ROOT_DIR}/src/modules/global_constants.f90"
"${ROOT_DIR}/src/modules/global_variables.f90"
......@@ -19,7 +19,8 @@ set(SRC ${FLAPCYC_SRC_DIR}/flap_controller_cyclic.f90
)
list(APPEND SRC ${MODSRC})
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
include(${ROOT_DIR}/utils/cmake/CMakeLists.txt)
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
# Set the project name
project(flap_controller LANGUAGES Fortran)
project(individual_flap_controller LANGUAGES Fortran)
message("Configuring Subproject: " ${PROJECT_NAME})
message("Root Directory is: " ${ROOT_DIR})
# set source code
set(FLAP_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
# set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE MODSRC "${ROOT_DIR}/src/modules/global_constants.f90"
......@@ -18,7 +18,8 @@ file(GLOB_RECURSE MODSRC "${ROOT_DIR}/src/modules/global_constants.f90"
file(GLOB_RECURSE SRC "${FLAP_SRC_DIR}/flap_controller_individual_aep_u_f.f90")
list(APPEND SRC ${MODSRC})
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
include(${ROOT_DIR}/utils/cmake/CMakeLists.txt)
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
# Set the project name
# project(individual_pitch_controller LANGUAGES Fortran)
project(cyclic_pitch_controller LANGUAGES Fortran)
message("Configuring Sub-project: " ${PROJECT_NAME})
message("Root Directory of this Sub-project: " ${ROOT_DIR})
message("Root Directory is: " ${ROOT_DIR})
# set source code
set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(IPCSRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE MODSRC "${ROOT_DIR}/src/modules/global_constants.f90"
"${ROOT_DIR}/src/modules/global_variables.f90"
"${ROOT_DIR}/src/modules/misc_mod.f90"
"${ROOT_DIR}/src/modules/user_defined_types.f90"
)
#set(SRC ${IPCSRC_DIR}/individual_pitch_controller.f90
# individual_pitch_controller_fcns.f90
# )
set(SRC ${IPCSRC_DIR}/cyclic_pitch_controller.f90
cyclic_pitch_controller_fcns.f90
)
list(APPEND SRC ${MODSRC})
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
include(${ROOT_DIR}/utils/cmake/CMakeLists.txt)
message("Including the utils: " "${ROOT_DIR}/utils/cmake/CMakeLists.txt")
Subproject commit 003c5034bda0fa4bd4f7a0a85cb673ffe2d7b083
Subproject commit a054254b1f933f7b5db73271d80df9f6ea8d2ca1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment