axmol/samples/Cpp/HelloCpp/CMakeLists.txt

23 lines
470 B
CMake
Raw Normal View History

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-04 14:49:42 +08:00
set(SAMPLE_BIN_DIR "${CMAKE_SOURCE_DIR}/bin/${SAMPLE_NAME}")
2013-11-02 16:31:52 +08:00
2013-11-04 14:49:42 +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