axmol/samples/Lua/HelloLua/CMakeLists.txt

38 lines
647 B
CMake
Raw Normal View History

2013-11-02 19:14:29 +08:00
set(SAMPLE_NAME hellolua)
set(SAMPLE_SRC
proj.linux/main.cpp
Classes/AppDelegate.cpp
)
include_directories(
Classes
../../../cocos/scripting/lua/bindings
../../../external/lua/lua
../../../external/lua/tolua
)
# add the executable
add_executable(${SAMPLE_NAME}
${SAMPLE_SRC}
)
target_link_libraries(${SAMPLE_NAME}
luabinding
gui
network
cocostudio
cocosbuilder
extensions
2013-11-04 13:10:04 +08:00
audio
cocos2d
2013-11-02 19:14:29 +08:00
)
2013-11-04 14:49:42 +08:00
set(SAMPLE_BIN_DIR "${CMAKE_SOURCE_DIR}/bin/${SAMPLE_NAME}")
2013-11-02 19:14:29 +08:00
2013-11-04 14:49:42 +08:00
set_target_properties(${SAMPLE_NAME} PROPERTIES
2013-11-02 19:14:29 +08:00
RUNTIME_OUTPUT_DIRECTORY "${SAMPLE_BIN_DIR}")
COPY_RES( ${SAMPLE_NAME} "Resources/*" "${SAMPLE_BIN_DIR}")