diff options
author | Li Jin <dragon-fly@qq.com> | 2020-10-22 16:02:39 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-10-22 16:02:39 +0800 |
commit | a51a728d847e790329e41c75928a81630200b63f (patch) | |
tree | 8cc8e93a7863649499537366acecb41525022a57 /CMakeLists.txt | |
parent | f6e603cc5bef133e5e368a81f677bea92bc405b5 (diff) | |
download | yuescript-a51a728d847e790329e41c75928a81630200b63f.tar.gz yuescript-a51a728d847e790329e41c75928a81630200b63f.tar.bz2 yuescript-a51a728d847e790329e41c75928a81630200b63f.zip |
update Lua, fix cmakelists.txt.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fc58572..d865000 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -33,4 +33,10 @@ add_library( moonp MODULE src/MoonP/ast.cpp src/MoonP/parser.cpp src/MoonP/moon_ | |||
33 | set_target_properties( moonp PROPERTIES PREFIX "") | 33 | set_target_properties( moonp PROPERTIES PREFIX "") |
34 | target_link_libraries( moonp ${LUA_LIBRARIES} ) | 34 | target_link_libraries( moonp ${LUA_LIBRARIES} ) |
35 | 35 | ||
36 | install(CODE "") | 36 | add_custom_command(TARGET moonp |
37 | POST_BUILD | ||
38 | COMMAND make release | ||
39 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
40 | |||
41 | install(PROGRAMS bin/release/moonp DESTINATION bin) | ||
42 | |||