mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
reformat compile definitions
This commit is contained in:
parent
ef12debfd7
commit
3a1220d07e
|
@ -227,11 +227,24 @@ generate_source_groups(${SOURCE_FILES})
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${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)
|
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 ()
|
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)
|
if (WIN32)
|
||||||
target_compile_definitions(${PROJECT_NAME} PRIVATE USEWINSDK)
|
target_compile_definitions(${PROJECT_NAME} PRIVATE USEWINSDK)
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)
|
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)
|
||||||
|
|
Loading…
Reference in a new issue