Skip to content

Commit

Permalink
rename exe (and lib) name to llvm-ir-printer
Browse files Browse the repository at this point in the history
  • Loading branch information
ahueck committed Dec 27, 2018
1 parent f0d7367 commit b8e2351
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
add_subdirectory(printer)

add_executable(irprinter${EXE_SUFFIX}
add_executable(llvm-ir-printer${EXE_SUFFIX}
main.cpp
)

target_define_file_basename(irprinter${EXE_SUFFIX})
target_project_compile_options(irprinter${EXE_SUFFIX})
target_project_compile_definitions(irprinter${EXE_SUFFIX}
target_define_file_basename(llvm-ir-printer${EXE_SUFFIX})
target_project_compile_options(llvm-ir-printer${EXE_SUFFIX})
target_project_compile_definitions(llvm-ir-printer${EXE_SUFFIX}
PRIVATE_DEFS
LOG_LEVEL=${LOG_LEVEL}
)

target_include_directories(irprinter${EXE_SUFFIX}
target_include_directories(llvm-ir-printer${EXE_SUFFIX}
PUBLIC
${PROJECT_SOURCE_DIR}/include
)

target_link_libraries(irprinter${EXE_SUFFIX}
irprint
target_link_libraries(llvm-ir-printer${EXE_SUFFIX}
llvm-ir-print
#${libedit_LIBRARIES}
)

install(
TARGETS irprinter${EXE_SUFFIX}
TARGETS llvm-ir-printer${EXE_SUFFIX}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
)
)
18 changes: 9 additions & 9 deletions src/printer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
add_library(irprint
add_library(llvm-ir-print
IRNodeFinder.cpp
LLVMTool.cpp
)

target_define_file_basename(irprint)
target_project_compile_options(irprint)
target_project_compile_definitions(irprint
target_define_file_basename(llvm-ir-print)
target_project_compile_options(llvm-ir-print)
target_project_compile_definitions(llvm-ir-print
PRIVATE_DEFS
LOG_LEVEL=${LOG_LEVEL}
)

target_include_directories(irprint
target_include_directories(llvm-ir-print
PUBLIC
${PROJECT_SOURCE_DIR}/include
)

target_include_directories(irprint
target_include_directories(llvm-ir-print
SYSTEM
PUBLIC
${LLVM_INCLUDE_DIRS}
)

target_link_libraries(irprint
target_link_libraries(llvm-ir-print
${CLANG_EXPORTED_TARGETS}
)

install(
TARGETS irprint
TARGETS llvm-ir-print
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
Expand All @@ -40,4 +40,4 @@ install(
)

# Hacky: Here, the install code is guaranteed to run last (after ${CMAKE_INSTALL_PREFIX}/lib folder was created)
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CLANG_INSTALL_PREFIX}/lib/clang ${CMAKE_INSTALL_PREFIX}/lib/clang)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CLANG_INSTALL_PREFIX}/lib/clang ${CMAKE_INSTALL_PREFIX}/lib/clang)")

0 comments on commit b8e2351

Please sign in to comment.