Skip to content

Commit

Permalink
Add post-build command for Ecc to build all Es files in the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragora committed Mar 12, 2016
1 parent e81153f commit 375bdb6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Ecc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ FILE(GLOB ECC_SOURCES "*.cpp")

INCLUDE_DIRECTORIES ("../")
ADD_EXECUTABLE (Ecc ${ECC_SOURCES} ${ECC_INCLUDES})

FILE(GLOB_RECURSE ES_SOURCES "../*.es")

FOREACH(FILE ${ES_SOURCES})
GET_FILENAME_COMPONENT(FILE ${FILE} ABSOLUTE)

ADD_CUSTOM_COMMAND(TARGET Ecc POST_BUILD
COMMAND $<TARGET_FILE:Ecc> ${FILE})
ENDFOREACH()

1 comment on commit 375bdb6

@Ragora
Copy link
Owner Author

@Ragora Ragora commented on 375bdb6 Mar 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this Ecc will trip over es files that have nothing in them, so either Ecc will need patched or we'll need to add something into the empty Es files that equate to a no-op.

Please sign in to comment.