axmol/samples/Cpp/HelloCpp/CMakeLists.txt

23 lines
413 B
CMake
Raw Normal View History

2013-11-04 18:48:36 +08:00
set(APP_NAME hellocpp)
2013-11-02 14:41:04 +08:00
set(SAMPLE_SRC
proj.linux/main.cpp
Classes/AppDelegate.cpp
Classes/HelloWorldScene.cpp
)
# add the executable
2013-11-04 18:48:36 +08:00
add_executable(${APP_NAME}
2013-11-02 14:41:04 +08:00
${SAMPLE_SRC}
)
2013-11-04 18:48:36 +08:00
target_link_libraries(${APP_NAME} audio cocos2d)
2013-11-02 16:31:52 +08:00
2013-11-04 18:48:36 +08:00
set(APP_BIN_DIR "${CMAKE_SOURCE_DIR}/bin/${APP_NAME}")
2013-11-02 16:31:52 +08:00
2013-11-04 18:48:36 +08:00
set_target_properties(${APP_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}")
2013-11-02 16:31:52 +08:00
2013-11-04 18:48:36 +08:00
COPY_RES( ${APP_NAME} )
2013-11-02 16:31:52 +08:00