mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-13 03:23:55 +00:00
another attempt at fixing dependencies
This commit is contained in:
parent
7d8b6140d6
commit
f16edcfbef
@ -30,6 +30,15 @@ add_executable(SystemExtension
|
||||
SystemExtension.r
|
||||
ShowInitIcon.h)
|
||||
|
||||
if(TARGET retrocrt)
|
||||
# Hack: if we are building as part of the Retro68 source tree,
|
||||
# make sure the run-time library is already compiled
|
||||
# (not needed for standalone projects)
|
||||
add_dependencies(SystemExtension retrocrt)
|
||||
endif(TARGET retrocrt)
|
||||
|
||||
|
||||
|
||||
set_target_properties(SystemExtension PROPERTIES
|
||||
OUTPUT_NAME SystemExtension.flt
|
||||
|
||||
|
@ -29,6 +29,15 @@
|
||||
# First, let's build a separate code resource:
|
||||
add_executable(WDEF wdef.c)
|
||||
|
||||
|
||||
if(TARGET retrocrt)
|
||||
# Hack: if we are building as part of the Retro68 source tree,
|
||||
# make sure the run-time library is already compiled
|
||||
# (not needed for standalone projects)
|
||||
add_dependencies(WDEF retrocrt)
|
||||
endif(TARGET retrocrt)
|
||||
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
||||
set_target_properties(WDEF PROPERTIES
|
||||
# tell wdef.c that it is being compiled as a code resource
|
||||
|
@ -78,7 +78,7 @@ function(add_application name)
|
||||
|
||||
|
||||
if(TARGET retrocrt)
|
||||
target_link_libraries(${name} retrocrt)
|
||||
add_dependencies(${name} retrocrt)
|
||||
endif(TARGET retrocrt)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
||||
|
Loading…
Reference in New Issue
Block a user