mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Add ${main_target} to reference "aseprite" target
This commit is contained in:
parent
74170c14fa
commit
11e4243d05
@ -170,26 +170,32 @@ add_custom_target(copy_data DEPENDS ${out_data_files})
|
|||||||
# Aseprite application
|
# Aseprite application
|
||||||
|
|
||||||
if(ENABLE_ASEPRITE_EXE)
|
if(ENABLE_ASEPRITE_EXE)
|
||||||
|
set(main_target aseprite)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(win32_resources
|
set(main_resources
|
||||||
main/resources_win32.rc
|
main/resources_win32.rc
|
||||||
main/settings.manifest)
|
main/settings.manifest)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(aseprite main/main.cpp ${win32_resources})
|
add_executable(${main_target}
|
||||||
if(WIN32 AND ENABLE_UI)
|
main/main.cpp
|
||||||
set_target_properties(aseprite PROPERTIES WIN32_EXECUTABLE true)
|
${main_resources})
|
||||||
|
if(ENABLE_UI)
|
||||||
|
if(WIN32)
|
||||||
|
set_target_properties(${main_target} PROPERTIES WIN32_EXECUTABLE true)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set_target_properties(aseprite PROPERTIES LINK_FLAGS "${LAF_BACKEND_LINK_FLAGS}")
|
set_target_properties(${main_target} PROPERTIES LINK_FLAGS "${LAF_BACKEND_LINK_FLAGS}")
|
||||||
target_link_libraries(aseprite app-lib)
|
target_link_libraries(${main_target} app-lib)
|
||||||
add_dependencies(aseprite copy_data)
|
add_dependencies(${main_target} copy_data)
|
||||||
|
|
||||||
if(LAF_OS_BACKEND_LINK_FLAGS)
|
if(LAF_OS_BACKEND_LINK_FLAGS)
|
||||||
set_target_properties(aseprite PROPERTIES LINK_FLAGS
|
set_target_properties(${main_target} PROPERTIES LINK_FLAGS
|
||||||
${LAF_OS_BACKEND_LINK_FLAGS})
|
${LAF_OS_BACKEND_LINK_FLAGS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS aseprite
|
install(TARGETS ${main_target}
|
||||||
RUNTIME DESTINATION bin)
|
RUNTIME DESTINATION bin)
|
||||||
|
|
||||||
install(DIRECTORY ../data
|
install(DIRECTORY ../data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user