Skip to content

Commit

Permalink
format CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-kan committed Apr 20, 2022
1 parent b3821e4 commit e5641a0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 43 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ADD_SUBDIRECTORY(performance)
ADD_SUBDIRECTORY(performance_test2021-private)
ADD_SUBDIRECTORY(performance_test2021-public)
add_subdirectory(performance)
add_subdirectory(performance_test2021-private)
add_subdirectory(performance_test2021-public)
13 changes: 0 additions & 13 deletions gen_input_gzip.py

This file was deleted.

19 changes: 10 additions & 9 deletions performance/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FILE(GLOB mains *.sysu.c)
FOREACH(mainfile ${mains})
# Get file name without directory
GET_FILENAME_COMPONENT(mainname ${mainfile} NAME_WE)
ADD_EXECUTABLE(sysu-tester-performance_${mainname} ${mainfile})
TARGET_LINK_LIBRARIES(sysu-tester-performance_${mainname} sysy)
TARGET_INCLUDE_DIRECTORIES(sysu-tester-performance_${mainname} PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
INSTALL(TARGETS sysu-tester-performance_${mainname})
ENDFOREACH()
file(GLOB mains *.sysu.c)
foreach(mainfile ${mains})
# Get file name without directory
get_filename_component(mainname ${mainfile} NAME_WE)
add_executable(sysu-tester-performance_${mainname} ${mainfile})
target_link_libraries(sysu-tester-performance_${mainname} sysy)
target_include_directories(sysu-tester-performance_${mainname}
PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
install(TARGETS sysu-tester-performance_${mainname})
endforeach()
22 changes: 13 additions & 9 deletions performance_test2021-private/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FILE(GLOB mains *.sysu.c)
FOREACH(mainfile ${mains})
# Get file name without directory
GET_FILENAME_COMPONENT(mainname ${mainfile} NAME_WE)
ADD_EXECUTABLE(sysu-tester-performance_test2021-private_${mainname} ${mainfile})
TARGET_LINK_LIBRARIES(sysu-tester-performance_test2021-private_${mainname} sysy)
TARGET_INCLUDE_DIRECTORIES(sysu-tester-performance_test2021-private_${mainname} PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
INSTALL(TARGETS sysu-tester-performance_test2021-private_${mainname})
ENDFOREACH()
file(GLOB mains *.sysu.c)
foreach(mainfile ${mains})
# Get file name without directory
get_filename_component(mainname ${mainfile} NAME_WE)
add_executable(sysu-tester-performance_test2021-private_${mainname}
${mainfile})
target_link_libraries(sysu-tester-performance_test2021-private_${mainname}
sysy)
target_include_directories(
sysu-tester-performance_test2021-private_${mainname}
PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
install(TARGETS sysu-tester-performance_test2021-private_${mainname})
endforeach()
21 changes: 12 additions & 9 deletions performance_test2021-public/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FILE(GLOB mains *.sysu.c)
FOREACH(mainfile ${mains})
# Get file name without directory
GET_FILENAME_COMPONENT(mainname ${mainfile} NAME_WE)
ADD_EXECUTABLE(sysu-tester-performance_test2021-public_${mainname} ${mainfile})
TARGET_LINK_LIBRARIES(sysu-tester-performance_test2021-public_${mainname} sysy)
TARGET_INCLUDE_DIRECTORIES(sysu-tester-performance_test2021-public_${mainname} PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
INSTALL(TARGETS sysu-tester-performance_test2021-public_${mainname})
ENDFOREACH()
file(GLOB mains *.sysu.c)
foreach(mainfile ${mains})
# Get file name without directory
get_filename_component(mainname ${mainfile} NAME_WE)
add_executable(sysu-tester-performance_test2021-public_${mainname}
${mainfile})
target_link_libraries(sysu-tester-performance_test2021-public_${mainname}
sysy)
target_include_directories(sysu-tester-performance_test2021-public_${mainname}
PRIVATE ${CMAKE_SOURCE_DIR}/librarian)
install(TARGETS sysu-tester-performance_test2021-public_${mainname})
endforeach()

0 comments on commit e5641a0

Please sign in to comment.