2013-11-02 14:41:04 +08:00
|
|
|
set(SAMPLE_NAME hellocpp)
|
|
|
|
|
|
|
|
set(SAMPLE_SRC
|
|
|
|
proj.linux/main.cpp
|
|
|
|
Classes/AppDelegate.cpp
|
|
|
|
Classes/HelloWorldScene.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# add the executable
|
|
|
|
add_executable(${SAMPLE_NAME}
|
|
|
|
${SAMPLE_SRC}
|
|
|
|
)
|
|
|
|
|
2013-11-04 13:10:04 +08:00
|
|
|
target_link_libraries(${SAMPLE_NAME} audio cocos2d)
|
2013-11-02 16:31:52 +08:00
|
|
|
|
2013-11-02 18:07:34 +08:00
|
|
|
set(SAMPLE_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${SAMPLE_NAME}")
|
2013-11-02 16:31:52 +08:00
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(${SAMPLE_NAME} PROPERTIES
|
2013-11-02 18:07:34 +08:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${SAMPLE_BIN_DIR}")
|
2013-11-02 16:31:52 +08:00
|
|
|
|
2013-11-02 18:07:34 +08:00
|
|
|
COPY_RES( ${SAMPLE_NAME} "Resources/*" "${SAMPLE_BIN_DIR}")
|
2013-11-02 16:31:52 +08:00
|
|
|
|