Skip to content

Commit

Permalink
lowercase executables
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscatedgenerated committed Jun 16, 2023
1 parent d46ce32 commit efb7a1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@ MESSAGE(STATUS "Version v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")


# add LMASM executable
add_executable(LMASM ${ASM_SOURCES} ${COMMON_SOURCES})
add_executable(lmasm ${ASM_SOURCES} ${COMMON_SOURCES})

# add regex library for windows
IF (WIN32)
target_link_libraries(LMASM regex)
target_link_libraries(lmasm regex)
ENDIF ()

# add LMVM executable
add_executable(LMVM ${VM_SOURCES} ${COMMON_SOURCES})
add_executable(lmvm ${VM_SOURCES} ${COMMON_SOURCES})

# add version info to build definitions
target_compile_definitions(LMASM PRIVATE -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_PATCH=${VERSION_PATCH})
target_compile_definitions(LMVM PRIVATE -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_PATCH=${VERSION_PATCH})
target_compile_definitions(lmasm PRIVATE -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_PATCH=${VERSION_PATCH})
target_compile_definitions(lmvm PRIVATE -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_PATCH=${VERSION_PATCH})

# use harsh flags
if (MSVC)
MESSAGE(STATUS "MSVC is not a supported compiler and may fail!")
target_compile_options(LMASM PRIVATE /W4 /WX)
target_compile_options(LMVM PRIVATE /W4 /WX)
target_compile_options(lmasm PRIVATE /W4 /WX)
target_compile_options(lmvm PRIVATE /W4 /WX)
else ()
target_compile_options(LMASM PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(LMVM PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(lmasm PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(lmvm PRIVATE -Wall -Wextra -pedantic -Werror)
endif ()

# check if installers are enabled
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_installer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else()
endif()

# add install target
install(TARGETS LMVM LMASM DESTINATION bin)
install(TARGETS lmvm lmasm DESTINATION bin)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.md DESTINATION .)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/README.html DESTINATION .)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION . RENAME LICENSE.txt)
Expand Down

0 comments on commit efb7a1b

Please sign in to comment.