Skip to content

Commit 324d181

Browse files
committed
add start
1 parent f0c08a8 commit 324d181

9 files changed

Lines changed: 2518 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,29 +158,49 @@ add_executable(demo
158158
target_link_libraries(demo
159159
${ALL_LIBS}
160160
)
161-
162161
# Copy assets to the build directory
163162
file(
164163
COPY demo/assets
165164
DESTINATION ${CMAKE_BINARY_DIR}
166165
)
166+
167+
####################################################################
168+
# start #
169+
####################################################################
170+
add_executable(start
171+
start/main.cpp
172+
start/myentity.cpp
173+
start/myentity.h
174+
start/myscene.cpp
175+
start/myscene.h
176+
)
177+
target_link_libraries(start
178+
${ALL_LIBS}
179+
)
180+
# Copy assets to the build directory
181+
file(
182+
COPY start/assets
183+
DESTINATION ${CMAKE_BINARY_DIR}
184+
)
167185
####################################################################
168186

169187

170188
if(WIN32)
171-
# Xcode and Visual working directories
189+
# Xcode and Visual working directories for demo
172190
set_target_properties(demo PROPERTIES XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/demo/")
173191
create_target_launcher(demo WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/demo/")
192+
# Xcode and Visual working directories for start
193+
set_target_properties(start PROPERTIES XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/start/")
194+
create_target_launcher(start WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/start/")
174195

175196
# create file tabs in visual studio
176197
SOURCE_GROUP(rt2d REGULAR_EXPRESSION ".*/rt2d/.*" )
177198
SOURCE_GROUP(demo REGULAR_EXPRESSION ".*/demo/.*" )
199+
SOURCE_GROUP(demo REGULAR_EXPRESSION ".*/start/.*" )
178200
SOURCE_GROUP(shaders REGULAR_EXPRESSION ".*/.*shaders$" )
179201
endif(WIN32)
180202

181203

182-
183-
184204
if (NOT ${CMAKE_GENERATOR} MATCHES "Xcode" )
185205
#add_custom_command(
186206
# TARGET demo POST_BUILD

start/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc

0 commit comments

Comments
 (0)