Line
Link Here
|
|
Libraries must be placed after object files in command line. |
|
Libraries must be placed after object files in command line. |
1 |
-- a/src/CMakeLists.txt |
1 |
++ b/src/CMakeLists.txt |
Lines 135-140
Link Here
|
135 |
# All libraries for .exe files |
135 |
# All libraries for .exe files |
136 |
set(all_libs ${aseprite_libraries} ${libs3rdparty} ${sys_libs}) |
136 |
set(all_libs ${aseprite_libraries} ${libs3rdparty} ${sys_libs}) |
137 |
|
137 |
|
|
|
138 |
if(LIBALLEGRO4_LINK_FLAGS) |
139 |
set(all_libs ${all_libs} ${LIBALLEGRO4_LINK_FLAGS}) |
140 |
endif() |
141 |
|
138 |
###################################################################### |
142 |
###################################################################### |
139 |
# ASEPRITE libraries |
143 |
# ASEPRITE libraries |
140 |
|
144 |
|
Lines 405-414
Link Here
|
405 |
|
409 |
|
406 |
add_executable(aseprite WIN32 main.cpp ${win32_resources} ${x11_resources}) |
410 |
add_executable(aseprite WIN32 main.cpp ${win32_resources} ${x11_resources}) |
407 |
target_link_libraries(aseprite ${all_libs}) |
411 |
target_link_libraries(aseprite ${all_libs}) |
408 |
if(LIBALLEGRO4_LINK_FLAGS) |
|
|
409 |
set_target_properties(aseprite |
410 |
PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) |
411 |
endif() |
412 |
|
412 |
|
413 |
install(TARGETS aseprite |
413 |
install(TARGETS aseprite |
414 |
RUNTIME DESTINATION bin) |
414 |
RUNTIME DESTINATION bin) |
Lines 450-457
Link Here
|
450 |
endif() |
450 |
endif() |
451 |
|
451 |
|
452 |
if(LIBALLEGRO4_LINK_FLAGS) |
452 |
if(LIBALLEGRO4_LINK_FLAGS) |
453 |
set_target_properties(${testname} |
453 |
target_link_libraries(${testname} ${LIBALLEGRO4_LINK_FLAGS}) |
454 |
PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) |
|
|
455 |
endif() |
454 |
endif() |
456 |
|
455 |
|
457 |
if(extra_definitions) |
456 |
if(extra_definitions) |