reformat compile definitions

This commit is contained in:
Rasmus Karlsson 2021-02-21 13:41:24 +01:00
parent ef12debfd7
commit 3a1220d07e

View file

@ -227,11 +227,24 @@ generate_source_groups(${SOURCE_FILES})
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_compile_definitions(${PROJECT_NAME} PRIVATE CHATTERINO UNICODE AB_CUSTOM_THEME AB_CUSTOM_SETTINGS IRC_STATIC IRC_NAMESPACE=Communi)
target_compile_definitions(${PROJECT_NAME} PRIVATE
CHATTERINO
UNICODE
AB_CUSTOM_THEME
AB_CUSTOM_SETTINGS
IRC_STATIC
IRC_NAMESPACE=Communi
)
if (USE_SYSTEM_QT5KEYCHAIN OR USE_PACKAGE_MANAGER)
target_compile_definitions(${PROJECT_NAME} PRIVATE CMAKE_BUILD)
target_compile_definitions(${PROJECT_NAME} PRIVATE
CMAKE_BUILD
)
endif ()
target_compile_definitions(${PROJECT_NAME} PRIVATE CHATTERINO_GIT_HASH=\"${GIT_HASH}\" CHATTERINO_GIT_RELEASE=\"${GIT_RELEASE}\" CHATTERINO_GIT_COMMIT=\"${GIT_COMMIT}\")
target_compile_definitions(${PROJECT_NAME} PRIVATE
CHATTERINO_GIT_HASH=\"${GIT_HASH}\"
CHATTERINO_GIT_RELEASE=\"${GIT_RELEASE}\"
CHATTERINO_GIT_COMMIT=\"${GIT_COMMIT}\"
)
if (WIN32)
target_compile_definitions(${PROJECT_NAME} PRIVATE USEWINSDK)
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)