add_executable(lua src/lua.c) target_link_libraries(lua ${LUA_LIBRARY}) if(UNIX AND NOT APPLE) #add math library for linux target_link_libraries(lua m) endif()
add_executable(luac ${LUA_SOURCES} src/luac.c) if(UNIX AND NOT APPLE) target_link_libraries(luac m) endif()
include_directories(src) add_executable (LuaProject01 main.cpp) target_link_libraries (LuaProject01 ${LUA_LIBRARY}) if(UNIX AND NOT APPLE) #add math library for linux target_link_libraries( LuaProject01 m ) endif()