Skip to content

Commit

Permalink
Fix levels not in subfolder on Linux and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgreiner committed Apr 6, 2018
1 parent 1a40fc7 commit a08708d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(PROJECT_IDENTIFIER "tech.ulti.indigo")
# Versioning format: http://semver.org
set(PROJECT_MAJOR_VERSION 1)
set(PROJECT_MINOR_VERSION 0)
set(PROJECT_PATCH_VERSION 0)
set(PROJECT_PATCH_VERSION 1)
set(PROJECT_COMPANY "ultitech")
string(TIMESTAMP YEAR "%Y")
set(PROJECT_COPYRIGHT "Copyright © 2006-${YEAR}, ${PROJECT_COMPANY}. All rights reserved.")
Expand Down Expand Up @@ -89,7 +89,7 @@ if(APPLE)
set_source_files_properties(${FRAMEWORKS} PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)

# Copy resources into bundle
set(RESOURCES ${PROJECT_SOURCE_DIR}/levels
set(RESOURCES ${PROJECT_SOURCE_DIR}/res/levels
${PROJECT_SOURCE_DIR}/Xcode/English.lproj
${PROJECT_SOURCE_DIR}/Xcode/de.lproj)

Expand Down Expand Up @@ -126,7 +126,7 @@ endif(UNIX AND NOT APPLE)
if(UNIX AND NOT APPLE OR WIN32)
add_custom_command(TARGET ${PROJECT_TARGETBIN} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${PROJECT_SOURCE_DIR}/levels $<TARGET_FILE_DIR:${PROJECT_TARGETBIN}>)
${PROJECT_SOURCE_DIR}/res $<TARGET_FILE_DIR:${PROJECT_TARGETBIN}>)
endif(UNIX AND NOT APPLE OR WIN32)

if(WIN32)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a08708d

Please sign in to comment.